diff options
| author | Jonathan Calvert <athemeus@athemeus.com> | 2024-09-06 22:19:47 -0500 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2024-11-04 14:26:25 -0800 |
| commit | 7446f7cdd103b129b8b750f577efd29e069176c0 (patch) | |
| tree | af3fad032aee0db4f1a0947fed73f2d1c08fac41 /ruby.c | |
| parent | 6b3a0b4ffd12cd7f80be224efa8744534fcf2b93 (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 'ruby.c')
0 files changed, 0 insertions, 0 deletions
