ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: pablodherrero@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:69666] [Ruby trunk - Bug #11284] [Open] String#upcase and String#downcase don't work for accented characters
Date: Thu, 18 Jun 2015 20:20:14 +0000	[thread overview]
Message-ID: <redmine.issue-11284.20150618202012.b994af207c43f2d2@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11284.20150618202012@ruby-lang.org

Issue #11284 has been reported by Pablo Herrero.

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

* Author: Pablo Herrero
* Status: Open
* 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/

       reply	other threads:[~2015-06-18 19:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-11284.20150618202012@ruby-lang.org>
2015-06-18 20:20 ` pablodherrero [this message]
2015-06-18 22:26 ` [ruby-core:69668] [Ruby trunk - Bug #11284] String#upcase and String#downcase don't work for accented characters 0x0dea+redmine
2015-06-19  8:12 ` [ruby-core:69676] [Ruby trunk - Bug #11284] [Closed] " duerst
2015-06-30  3:22 ` [ruby-core:69788] [Ruby trunk - Bug #11284] [Rejected] " usa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.issue-11284.20150618202012.b994af207c43f2d2@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).