Project

General

Profile

Actions

Bug #21764

closed

encoding of warning for depreciated global variables is not set

Bug #21764: encoding of warning for depreciated global variables is not set

Added by nobu (Nobuyoshi Nakada) about 11 hours ago. Updated about 11 hours ago.

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

Description

The aliased name should be encoded properly.

$ 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)>

Updated by nobu (Nobuyoshi Nakada) about 11 hours ago Actions #1

  • Status changed from Open to Closed

Applied in changeset git|cf12aff0593a0aa70d957b96f03df8288c025938.


[Bug #21764] Propagate the encoding of ID to warning

Actions

Also available in: PDF Atom