From: "k0kubun (Takashi Kokubun) via ruby-core" <ruby-core@...>
Date: 2025-01-15T01:58:26+00:00
Subject: [ruby-core:120689] [Ruby master Bug#20984] ENV.inspect is not encoding aware

Issue #20984 has been updated by k0kubun (Takashi Kokubun).

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) commit:19c39e4cfaa467e69b9848c9c5496d7f50d39c7f.

----------------------------------------
Bug #20984: ENV.inspect is not encoding aware
https://bugs.ruby-lang.org/issues/20984#change-111512

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Backport: 3.1: REQUIRED, 3.2: DONE, 3.3: DONE, 3.4: REQUIRED
----------------------------------------
```console
$ ruby -e 'ENV.clear; ENV["\u{3042}"] = "a"; p ENV.inspect.encoding'
#<Encoding:BINARY (ASCII-8BIT)>
```



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/