Forums: 公開討議 (Thread #25701)

perlモジュールの不具合(-M) (2010-03-12 12:25 by mk #49392)

下記のように通常の変換ではうまくいきません

$ cat report.pl
#! /usr/bin/perl
use NKF;

my $utf = "日本語の入力" ;
my $sjis = nkf("-s",$utf) ;

print "utf:" . nkf("-Mj","$utf") . "\n" ;
print "sjis:" . nkf("-Mj","$sjis") . "\n" ;

$ perl report.pl
utf:=?ISO-2022-JP?B?GyRCRnxLXDhsJE5Gfk5P
sjis:=?ISO-2022-JP?B?GyRCRnxLXDhsJE5Gfk5PGyhC?=


$ nkf -v
Network Kanji Filter Version 2.1.0 (2009-11-17)
Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).
Copyright (C) 1996-2009, The nkf Project.

$ cat /etc/issue
CentOS release 5.4 (Final)

Reply to #49392×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: perlモジュールの不具合(-M) (2010-03-12 20:54 by naruse #49405)

gitのHEADでは直っているので、2.1.1ではうまくいくようになります。
Reply to #49392

Reply to #49405×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: perlモジュールの不具合(-M) (2010-03-15 13:15 by mk #49475)

ありがとうございます
Reply to #49405

Reply to #49475×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login