Project

General

Profile

Actions

Bug #20984

closed

ENV.inspect is not encoding aware

Added by nobu (Nobuyoshi Nakada) 3 months ago. Updated 26 days ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:120414]

Description

$ ruby -e 'ENV.clear; ENV["\u{3042}"] = "a"; p ENV.inspect.encoding'
#<Encoding:BINARY (ASCII-8BIT)>
Actions #1

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

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

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0