4 Dec
2025
4 Dec
'25
3:22 p.m.
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/