Actions
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)>
Actions
Like0
Like0Like0Like0
Added by nobu (Nobuyoshi Nakada) 21 days ago. Updated 1 day ago.
Description
$ ruby -e 'ENV.clear; ENV["\u{3042}"] = "a"; p ENV.inspect.encoding'
#<Encoding:BINARY (ASCII-8BIT)>
Applied in changeset git|19c39e4cfaa467e69b9848c9c5496d7f50d39c7f.
[Bug #20984] ENV.inspect should be encoding aware
ruby_3_2 4e59c10646cf012d457da99ad258b0e6a3e42132 merged revision(s) 19c39e4cfaa467e69b9848c9c5496d7f50d39c7f, d78ff6a767ca813ac5fa178dd7611f20a993c191.
ruby_3_3 commit:0d6459249d13e247cd0eae28f59ef51b862bce80 merged revision(s) 19c39e4cfaa467e69b9848c9c5496d7f50d39c7f.