Backport #2605

test/iconv/test_option.rb fails

Added by Takahiro Kambe about 2 years ago. Updated 10 months ago.

[ruby-dev:40078]
Status:Closed Start date:01/14/2010
Priority:Low Due date:
Assignee:Shyouhei Urabe % Done:

0%

Category:ext
Target version:-

Description

test/iconv/test_option.rbのテストは、GNU iconv/Linux glibcを使用していない
環境では失敗します。

test_ignore_option(TestIconv::Option):
Iconv::InvalidEncoding: invalid encoding ("SHIFT_JIS", "EUC-JP//ignore")
    ./test/iconv/test_option.rb:5:in `initialize'
    ./test/iconv/test_option.rb:5:in `new'
    ./test/iconv/test_option.rb:5:in `test_ignore_option'

test_translit_option(TestIconv::Option):
Iconv::InvalidEncoding: invalid encoding ("SHIFT_JIS", "EUC-JP//ignore")
    ./test/iconv/test_option.rb:19:in `initialize'
    ./test/iconv/test_option.rb:19:in `new'
    ./test/iconv/test_option.rb:19:in `test_translit_option'

iconv(3)のコードセット名に "//ignore" や "//translit"を追加して挙動を
変える機能はGNU iconv/Linux glibcの独自の拡張で移植性はありません。

このような意味で、test/iconv/test_option.rbで行っているテストは独自の
機能を実装したiconvをテストしていることになります。

iconv(3)の問題は過去にメーリングリストで話題になりましたが、その問題を
明確に残しておく目的で、チケットとして登録します。

History

Updated by Yui NARUSE about 2 years ago

  • Status changed from Open to Assigned
  • Assignee set to Shyouhei Urabe
単に r25342 がまだバックポートされていないだけです。

Updated by Shyouhei Urabe over 1 year ago

  • Status changed from Assigned to Closed
バックポートしました

Also available in: Atom PDF