From: shugo@... Date: 2016-11-23T05:16:37+00:00 Subject: [ruby-core:78272] [Ruby trunk Bug#12972][Closed] TestDir_M17N#test_glob_encoding if the locale is neither C nor *.UTF-8 Issue #12972 has been updated by Shugo Maeda. Status changed from Open to Closed Fixed in r56881. ---------------------------------------- Bug #12972: TestDir_M17N#test_glob_encoding if the locale is neither C nor *.UTF-8 https://bugs.ruby-lang.org/issues/12972#change-61637 * Author: Shugo Maeda * Status: Closed * Priority: Normal * Assignee: * ruby -v: * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- TestDir_M17N#test_glob_encoding if the current locale is neither C nor *.UTF-8: ``` $ make test-all TESTS="test/ruby/test_dir_m17n.rb -n /test_glob_encoding/" LC_ALL=en_US (snip) [1/1] TestDir_M17N#test_glob_encoding = 0.00 s 1) Failure: TestDir_M17N#test_glob_encoding [/home/shugo/src/ruby/test/ruby/test_dir_m17n.rb:390]: [ruby-core:73868] [Bug #12081]. <["file_one.ext", "file_two.ext", "\u6587\u4EF61.txt", "\u6587\u4EF62.txt", "\u76EE\u{5F551}"]> expected but was <["file_one.ext", "file_two.ext", "\u00E6\u0096\u0087\u00E4\u00BB\u00B61.txt", "\u00E6\u0096\u0087\u00E4\u00BB\u00B62.txt", "\u00E7\u009B\u00AE\u00F1\u009F\u0095\u0091"]>. ``` ``` $ make test-all TESTS="test/ruby/test_dir_m17n.rb -n /test_glob_encoding/" LC_ALL=ja_JP.EUC-JP (snip) [1/1] TestDir_M17N#test_glob_encoding = 0.00 s 1) Error: TestDir_M17N#test_glob_encoding: Encoding::InvalidByteSequenceError: "\xE6" followed by "\x96" on EUC-JP /home/shugo/src/ruby/test/ruby/test_dir_m17n.rb:387:in `encode' /home/shugo/src/ruby/test/ruby/test_dir_m17n.rb:387:in `block (2 levels) in test_glob_encoding' /home/shugo/src/ruby/test/ruby/test_dir_m17n.rb:383:in `map' /home/shugo/src/ruby/test/ruby/test_dir_m17n.rb:383:in `block in test_glob_encoding' /home/shugo/src/ruby/test/ruby/test_dir_m17n.rb:9:in `block (2 levels) in with_tmpdir' /home/shugo/src/ruby/test/ruby/test_dir_m17n.rb:8:in `chdir' /home/shugo/src/ruby/test/ruby/test_dir_m17n.rb:8:in `block in with_tmpdir' /home/shugo/src/ruby/lib/tmpdir.rb:89:in `mktmpdir' /home/shugo/src/ruby/test/ruby/test_dir_m17n.rb:7:in `with_tmpdir' /home/shugo/src/ruby/test/ruby/test_dir_m17n.rb:372:in `test_glob_encoding' Finished tests in 0.009053s, 110.4593 tests/s, 441.8373 assertions/s. 1 tests, 4 assertions, 0 failures, 1 errors, 0 skips ``` -- https://bugs.ruby-lang.org/ Unsubscribe: