Issue #12972 has been reported by Shugo Maeda.

----------------------------------------
Bug #12972: TestDir_M17N#test_glob_encoding if the locale is neither C nor *.UTF-8
https://bugs.ruby-lang.org/issues/12972

* Author: Shugo Maeda
* Status: Open
* 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: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>