[#111472] [Ruby master Bug#19274] Error installing ruby 3.2.0 on RH 8 — "aalllop (Alberto Allegue) via ruby-core" <ruby-core@...>
Issue #19274 has been reported by aalllop (Alberto Allegue).
5 messages
2022/12/28
[#111508] Data support for versions before 3.2.0 — Eustáquio Rangel via ruby-core <ruby-core@...>
I was wondering that every piece of code (gems, etc) that use the new Data =
3 messages
2022/12/29
[ruby-core:111335] [Ruby master Bug#19243] Windows: Dir.home returns string in wrong encoding
From:
"larskanis (Lars Kanis) via ruby-core" <ruby-core@...>
Date:
2022-12-19 14:26:33 UTC
List:
ruby-core #111335
Issue #19243 has been updated by larskanis (Lars Kanis).
Patch is here: https://github.com/ruby/ruby/pull/6958
----------------------------------------
Bug #19243: Windows: Dir.home returns string in wrong encoding
https://bugs.ruby-lang.org/issues/19243#change-100709
* Author: larskanis (Lars Kanis)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Create a new local user on Windows called "kanis=E4".
Then login to the new user and run in cmd:
```
C:\Users\kanis=E4>ruby -e "p Dir.home"
"C:/Users/kanis\xE4"
C:\Users\kanis=E4>ruby -e "p Dir.home.encoding"
#<Encoding:UTF-8>
C:\Users\kanis=E4>ruby -e "p Dir.home.encode('utf-8', 'iso-8859-15')"
"C:/Users/kanis=E4"
C:\Users\kanis=E4>echo %USERPROFILE%
C:\Users\kanis=E4
```
`Dir.home` should encode the path in UTF-8. Instead the string is labeled a=
s UTF-8 but bytes are encoded in `iso-8859-15`.
All versions between ruby-3.0 and current master branch are affected.
--=20
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- [email protected]
To unsubscribe send an email to [email protected]
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-c=
ore.ml.ruby-lang.org/