From: "Stranger6667 (Dmitry Dygalo) via ruby-core" Date: 2025-06-23T15:15:18+00:00 Subject: [ruby-core:122582] [Ruby Bug#21450] Inconsistent `upcase` between `String` and `Symbol` Issue #21450 has been reported by Stranger6667 (Dmitry Dygalo). ---------------------------------------- Bug #21450: Inconsistent `upcase` between `String` and `Symbol` https://bugs.ruby-lang.org/issues/21450 * Author: Stranger6667 (Dmitry Dygalo) * Status: Open * ruby -v: 3.4 * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- Behavior for `Symbol#upcase` and `String#upcase` differs for `i` character if the `:turkic` is present I'd expect `val.upcase(:turkic)` behaves consistently for both cases: ```ruby 'i'.upcase(:turkic) # "��" with dot :i.upcase(:turkic) # :I no dot ``` However, when a non-ASCII character is present, then the mapping on `Symbol` works the same way as with `String`: ```ruby :i��.upcase(:turkic) # :���� # with dot ``` -- 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/