[ruby-core:69788] [Ruby trunk - Bug #11284] [Rejected] String#upcase and String#downcase don't work for accented characters

From: usa@...
Date: 2015-06-30 03:22:14 UTC
List: ruby-core #69788
Issue #11284 has been updated by Usaku NAKAMURA.

Status changed from Closed to Rejected

This status "rejected" does not mean this report is rejected.
This change is only to unify the tickets.

----------------------------------------
Bug #11284: String#upcase and String#downcase don't work for accented characters
https://bugs.ruby-lang.org/issues/11284#change-53169

* Author: Pablo Herrero
* Status: Rejected
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Many accented and other non-english characters fails to upcase/downcase properly.
Accented characters is the most common are the ones I keep stumbling upon,, but probably other germanic/nordic characters I'm not aware of have the same problems.

For example:

    "Hola, ¿Cómo estás?".upcase         # returns "HOLA, ¿CóMO ESTáS?"
    "CONFIANÇA".downcase                # returns "confianÇa"
    "Un moment s'il vous plaît".upcase  # returns "UN MOMENT S'IL VOUS PLAîT"



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next