Bug #20984
closedENV.inspect is not encoding aware
Description
$ ruby -e 'ENV.clear; ENV["\u{3042}"] = "a"; p ENV.inspect.encoding'
#<Encoding:BINARY (ASCII-8BIT)>
Updated by nobu (Nobuyoshi Nakada) 3 months ago
- Status changed from Open to Closed
Applied in changeset git|19c39e4cfaa467e69b9848c9c5496d7f50d39c7f.
[Bug #20984] ENV.inspect should be encoding aware
Updated by nagachika (Tomoyuki Chikanaga) about 2 months ago
- 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
ruby_3_2 4e59c10646cf012d457da99ad258b0e6a3e42132 merged revision(s) 19c39e4cfaa467e69b9848c9c5496d7f50d39c7f, d78ff6a767ca813ac5fa178dd7611f20a993c191.
Updated by k0kubun (Takashi Kokubun) about 2 months ago
- 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
ruby_3_3 commit:0d6459249d13e247cd0eae28f59ef51b862bce80 merged revision(s) 19c39e4cfaa467e69b9848c9c5496d7f50d39c7f.
Updated by k0kubun (Takashi Kokubun) 26 days ago
Note: tool/merger.rb --ticket=20984 19c39e4cfaa467e69b9848c9c5496d7f50d39c7f,d78ff6a767ca813ac5fa178dd7611f20a993c191
causes a conflict in a test.
Updated by k0kubun (Takashi Kokubun) 26 days ago
- 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
ruby_3_4 270129fdcb923654d9741465ec26e179507e8c96 merged revision(s) 19c39e4cfaa467e69b9848c9c5496d7f50d39c7f, d78ff6a767ca813ac5fa178dd7611f20a993c191.
Updated by k0kubun (Takashi Kokubun) 26 days ago
The conflict was relatively small (unlike [Bug #20982]), so I "think" I figured it out. Pushed the backport patch as commented above.