From: Jay Mav via ruby-core Date: 2023-12-23T17:31:50-08:00 Subject: [ruby-core:115884] Windows Ruby 3.2.2: Non-English character added to Windows Registry String Value --===============0538050933148753594== Content-Type: multipart/alternative; boundary="00000000000088766e060d376a58" --00000000000088766e060d376a58 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Compiled Ruby 3.2.2 on Windows with MSVC 2019 - Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64. Code: require 'win32/registry' win_oracle_key =3D "SOFTWARE\\ORACLE" reg=3DWin32::Registry::HKEY_LOCAL_MACHINE.open(win_oracle_key, Win32::Registry::KEY_ALL_ACCESS) inst_loc_key =3D "inst_loc" inv_dir=3D"C:\\Program Files\\Tester\\Inventory" reg[inst_loc_key] =3D inv_dir .... Registry contains: C:\Program Files\Tester\Inventory=E6=B4=80 (Not sure what that character represents.) Can the Ruby Dev Team please let me know how to resolve this issue so that this character does not get added to the string? Thanks in advance. --00000000000088766e060d376a58 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
Compiled Ruby 3.2.2 on Windows with MSVC 2019 - = Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64.

Code:
require 'win32/registry'
win_or= acle_key =3D "SOFTWARE\\ORACLE"
reg=3DWin32::Registry::HKEY_LO= CAL_MACHINE.open(win_oracle_key, Win32::Registry::KEY_ALL_ACCESS)
inst_l= oc_key =3D "inst_loc"
inv_dir=3D"C:\\Program Files\\Teste= r\\Inventory"
reg[inst_loc_key] =3D inv_dir

....

Regi= stry contains: C:\Program Files\Tester\Inventory=E6=B4=80
(Not sure what= that character represents.)

Can the Ruby Dev Team please let me kno= w how to resolve this issue so that this character does not get added to th= e string?

Thanks in advance. --00000000000088766e060d376a58-- --===============0538050933148753594== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/ --===============0538050933148753594==--