Feature #16233 ยป windows_nocodepage_utf8_fallback_r2.5.patch
ext/win32/lib/win32/registry.rb | ||
---|---|---|
WCHAR_NUL = "\0".encode(WCHAR).freeze
|
||
WCHAR_CR = "\r".encode(WCHAR).freeze
|
||
WCHAR_SIZE = WCHAR_NUL.bytesize
|
||
LOCALE = Encoding.find(Encoding.locale_charmap)
|
||
begin
|
||
LOCALE = Encoding.find(Encoding.locale_charmap)
|
||
rescue ArgumentError
|
||
LOCALE = Encoding::UTF_8
|
||
end
|
||
class Registry
|
||