Project

General

Profile

Feature #16233 ยป windows_nocodepage_utf8_fallback_r2.5.patch

patch to fix the issue - gabuscus (Gabriel Nagy), 10/03/2019 07:27 AM

View differences:

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
    (1-1/1)