Skip to content

Commit

Permalink
[Win32] Return registry strings as UTF-8
Browse files Browse the repository at this point in the history
Since ruby-3.0 usually all strings from the Windows-API are returned as UTF-8 strings.
This is a leftover from 2.x times.

Fixes: oneclick/rubyinstaller2#348
  • Loading branch information
larskanis authored Dec 25, 2023
1 parent f4d2fe5 commit a43393b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/win32/lib/win32/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module Win32
WCHAR_NUL = "\0".encode(WCHAR).freeze
WCHAR_CR = "\r".encode(WCHAR).freeze
WCHAR_SIZE = WCHAR_NUL.bytesize
LOCALE = Encoding.find(Encoding.locale_charmap)
LOCALE = Encoding::UTF_8

class Registry

Expand Down

0 comments on commit a43393b

Please sign in to comment.