summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/win32ole/win32ole/create_guid_spec.rb
diff options
context:
space:
mode:
authorJosh Cooper <joshcooper@users.noreply.github.com>2023-02-23 13:15:36 -0800
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-09-25 10:43:31 +0900
commit0d16c36d0ab2afa2ec79b72b229e69c141ebdaba (patch)
treec70727e351662e0ff596e85455061a47a4a2d566 /spec/rubyspec/library/win32ole/win32ole/create_guid_spec.rb
parentc94ea1cccb24a41a5cd5c7e90aec04cb477b367e (diff)
[win32/registry] Fallback to UTF-8 for unknown codepagesHEADmaster
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]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7366
Diffstat (limited to 'spec/rubyspec/library/win32ole/win32ole/create_guid_spec.rb')
0 files changed, 0 insertions, 0 deletions