From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 2F56E1960007 for ; Fri, 19 Jun 2015 07:04:11 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 05B0CB5D8A5 for ; Fri, 19 Jun 2015 07:27:02 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id B9AB097A82B for ; Fri, 19 Jun 2015 07:27:02 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zSyGJ8W9RQA9 for ; Fri, 19 Jun 2015 07:27:02 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id DE37697A827 for ; Fri, 19 Jun 2015 07:27:01 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 0B3DF95243A for ; Fri, 19 Jun 2015 07:26:58 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 1C843120477; Fri, 19 Jun 2015 07:26:57 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 9783E120452 for ; Fri, 19 Jun 2015 07:26:52 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=7I1tSPH/ajNfKJraSUhOAUYFGTs=; b=tkC90+VfkKgwyYy0H7 vuSpAdSdxWvsqUONTEPGqB2Rn50hYpDRlb8iqtxtb27DnprbyEazxZfWLKjhhLWs 43SbHIE+tedyfiab0P2+7qqtkgUHfi9Jsn8PKSV30eIzmCmjd4YnIGpBxDMvGJw7 GEomRIycy6h7K510Hn1B2PrBM= Received: by filter0417p1mdw1.sendgrid.net with SMTP id filter0417p1mdw1.29892.558345A620 2015-06-18 22:26:47.195052126 +0000 UTC Received: from herokuapp.com (ec2-54-167-252-229.compute-1.amazonaws.com [54.167.252.229]) by ismtpd-025 (SG) with ESMTP id 14e08c814c7.24e3.f7e41 for ; Thu, 18 Jun 2015 22:26:47 +0000 (UTC) Date: Thu, 18 Jun 2015 22:26:46 +0000 From: 0x0dea+redmine@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Redmine-MailingListIntegration-Message-Ids: 44217 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11284 X-Redmine-Issue-Author: pabloh X-Redmine-Sender: 0x0dea X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS6gpgIiNK0vujENcV3tHWtmDDeQsv7jn03YS6 F2UhjaJvWSDKDq/1CMgjW2CLcXxy+sb+mUmidg1gmTNArj6m0eXM+uXnoXq9xRjn4wlRxtRhvOPEQW t58csnlQ9DRBjjXOpIf2Dr9OXYBpvI0aI+W2 X-ML-Name: ruby-core X-Mail-Count: 69668 Subject: [ruby-core:69668] [Ruby trunk - Bug #11284] String#upcase and String#downcase don't work for accented characters X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11284 has been updated by D.E. Akers. http://stackoverflow.com/a/4418681 It would be unreasonable to add natural language processing to Ruby for the= sake of a few methods, and it's easy to argue the case for not doing it at= all over doing it incorrectly. ---------------------------------------- Bug #11284: String#upcase and String#downcase don't work for accented chara= cters https://bugs.ruby-lang.org/issues/11284#change-53028 * Author: Pablo Herrero * Status: Open * Priority: Normal * Assignee:=20 * 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 pro= perly. 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 sa= me problems. For example: "Hola, =C2=BFC=C3=B3mo est=C3=A1s?".upcase # returns "HOLA, =C2= =BFC=C3=B3MO EST=C3=A1S?" "CONFIAN=C3=87A".downcase # returns "confian=C3=87a" "Un moment s'il vous pla=C3=AEt".upcase # returns "UN MOMENT S'IL VOUS= PLA=C3=AET" --=20 https://bugs.ruby-lang.org/