[ruby-core:124028] [Ruby Bug#21764] encoding of warning for depreciated global variables is not set
Issue #21764 has been reported by nobu (Nobuyoshi Nakada). ---------------------------------------- Bug #21764: encoding of warning for depreciated global variables is not set https://bugs.ruby-lang.org/issues/21764 * Author: nobu (Nobuyoshi Nakada) * Status: Open * ruby -v: 68a7edaa81 * Backport: 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED ---------------------------------------- The aliased name should be encoded properly. ```console $ ruby -v -e 'def Warning.warn(s) = p(s, s.encoding); alias $分行 $/; $分行 = "\n"' ruby 4.0.0dev (2025-11-27T12:05:45Z master 68a7edaa81) +PRISM [arm64-darwin25] "-e:1: warning: '$\xE5\x88\x86\xE8\xA1\x8C' is deprecated\n" #<Encoding:BINARY (ASCII-8BIT)> ``` -- https://bugs.ruby-lang.org/
Issue #21764 has been updated by k0kubun (Takashi Kokubun). Backporting this causes conflicts. Could you file a backport PR to `ruby_3_4` please? ---------------------------------------- Bug #21764: encoding of warning for depreciated global variables is not set https://bugs.ruby-lang.org/issues/21764#change-115503 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * ruby -v: 68a7edaa81 * Backport: 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED ---------------------------------------- The aliased name should be encoded properly. ```console $ ruby -v -e 'def Warning.warn(s) = p(s, s.encoding); alias $分行 $/; $分行 = "\n"' ruby 4.0.0dev (2025-11-27T12:05:45Z master 68a7edaa81) +PRISM [arm64-darwin25] "-e:1: warning: '$\xE5\x88\x86\xE8\xA1\x8C' is deprecated\n" #<Encoding:BINARY (ASCII-8BIT)> ``` -- https://bugs.ruby-lang.org/
participants (2)
-
k0kubun (Takashi Kokubun) -
nobu (Nobuyoshi Nakada)