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
69 69
  WCHAR_NUL = "\0".encode(WCHAR).freeze
70 70
  WCHAR_CR = "\r".encode(WCHAR).freeze
71 71
  WCHAR_SIZE = WCHAR_NUL.bytesize
72
  LOCALE = Encoding.find(Encoding.locale_charmap)
72
  begin
73
    LOCALE = Encoding.find(Encoding.locale_charmap)
74
  rescue ArgumentError
75
    LOCALE = Encoding::UTF_8
76
  end
73 77

  
74 78
  class Registry
75 79