Project

General

Profile

Actions

Bug #12972

closed

TestDir_M17N#test_glob_encoding if the locale is neither C nor *.UTF-8

Added by shugo (Shugo Maeda) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:78271]

Description

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

Updated by shugo (Shugo Maeda) over 7 years ago

  • Status changed from Open to Closed

Fixed in r56881.

Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago

  • Backport changed from 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONE

ruby_2_3 r56887 merged revision(s) 56881.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0