diff options
| author | nagachika <nagachika@ruby-lang.org> | 2024-09-26 13:00:19 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2024-09-26 13:00:19 +0900 |
| commit | 2d62c5d3d9a565fe50a3582124e6d4a58d130084 (patch) | |
| tree | fd5a9048ee8f198ea8445bd45ecf51c0642005aa /test/ruby/test_rubyoptions.rb | |
| parent | b6f7d544851ee8e1f6e4d151cc915b40f8b8e4f6 (diff) | |
merge revision(s) 0d16c36d0ab2afa2ec79b72b229e69c141ebdaba: [Backport #13831]
[win32/registry] Fallback to UTF-8 for unknown codepages
There are some codepages like cp708 for which no ruby encoding exists:
$ ruby -e "Encoding.find('cp708')"
Traceback (most recent call last):
1: from -e:1:in `<main>'
-e:1:in `find': unknown encoding name - cp708 (ArgumentError)
win32/registry uses ENCODING to transcode error messages and expand environment
variables from UTF-16LE, so using UTF-8 seems like the best choice and is better
than a hard failure.
This should resolve [Bug #13831]
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
0 files changed, 0 insertions, 0 deletions
