Bug #20984
closed
ENV.inspect is not encoding aware
Added by nobu (Nobuyoshi Nakada) 4 months ago.
Updated about 1 month ago.
Description
$ ruby -e 'ENV.clear; ENV["\u{3042}"] = "a"; p ENV.inspect.encoding'
#<Encoding:BINARY (ASCII-8BIT)>
- Status changed from Open to Closed
- Backport changed from 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED to 3.1: REQUIRED, 3.2: DONE, 3.3: REQUIRED, 3.4: REQUIRED
- Backport changed from 3.1: REQUIRED, 3.2: DONE, 3.3: REQUIRED, 3.4: REQUIRED to 3.1: REQUIRED, 3.2: DONE, 3.3: DONE, 3.4: REQUIRED
Note: tool/merger.rb --ticket=20984 19c39e4cfaa467e69b9848c9c5496d7f50d39c7f,d78ff6a767ca813ac5fa178dd7611f20a993c191
causes a conflict in a test.
- Backport changed from 3.1: REQUIRED, 3.2: DONE, 3.3: DONE, 3.4: REQUIRED to 3.1: REQUIRED, 3.2: DONE, 3.3: DONE, 3.4: DONE
The conflict was relatively small (unlike [Bug #20982]), so I "think" I figured it out. Pushed the backport patch as commented above.
Backported d78ff6a767ca813ac5fa178dd7611f20a993c191 into ruby_3_3 at 3d8a66568e8106b367665d716e0d3c8c8208aa07.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0Like0