Perl5で丸数字とかを正しく扱うために、Encode::EUCJPMSモジュールを使っている。しかし、0.06だとなぜか「eucJP-ms」エンコーディングが定義されない。テストは以下の簡単なコードで行った。
1 2 3 4 5 6 7 8 9 10 11 12 |
#!/usr/bin/perl -w use Encode qw(from_to); use Encode::EUCJPMS; #use Encode::Alias; #define_alias('eucJP-ms' => 'glibc-EUC_JP_MS-2.3.3'); while (<>) { from_to($_, 'eucJP-ms', 'cp932'); print; } |
0.05では問題なく動くが、0.06だと「Unknown encoding ‘eucJP-ms’ at test.pl line 10」と怒られる。コメント部分を生かすと動くので、エイリアスが効いていないのではないかと思われるが、果たして。
作者の方に質問してみたので回答待ち。
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?