From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23833: 24.5; assoc-string with CASE-FOLD may fail Date: Thu, 23 Jun 2016 22:25:53 +0300 Message-ID: <83eg7n3dxa.fsf@gnu.org> References: <87a8icm7wg.fsf@gmail.com> <83r3bo2b4p.fsf@gnu.org> <83k2hf3mki.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1466710113 10983 80.91.229.3 (23 Jun 2016 19:28:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2016 19:28:33 +0000 (UTC) Cc: ynyaaa@gmail.com, 23833@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 23 21:28:22 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bGAIR-0000fa-Nc for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jun 2016 21:28:15 +0200 Original-Received: from localhost ([::1]:38926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGAIQ-00082c-UW for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jun 2016 15:28:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGAII-000806-Vs for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 15:28:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGAIE-0006iq-SB for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 15:28:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGAIE-0006id-Ov for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 15:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bGAIE-0004Nv-Hi for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2016 15:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jun 2016 19:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23833 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23833-submit@debbugs.gnu.org id=B23833.146671003716797 (code B ref 23833); Thu, 23 Jun 2016 19:28:02 +0000 Original-Received: (at 23833) by debbugs.gnu.org; 23 Jun 2016 19:27:17 +0000 Original-Received: from localhost ([127.0.0.1]:53002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGAHU-0004Mq-SG for submit@debbugs.gnu.org; Thu, 23 Jun 2016 15:27:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGAHS-0004Md-Hx for 23833@debbugs.gnu.org; Thu, 23 Jun 2016 15:27:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGAHJ-0006Wq-FM for 23833@debbugs.gnu.org; Thu, 23 Jun 2016 15:27:09 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGAHJ-0006Wm-CN; Thu, 23 Jun 2016 15:27:05 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3354 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bGAHE-0001In-4a; Thu, 23 Jun 2016 15:27:02 -0400 In-reply-to: <83k2hf3mki.fsf@gnu.org> (message from Eli Zaretskii on Thu, 23 Jun 2016 19:19:09 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119989 Archived-At: > Date: Thu, 23 Jun 2016 19:19:09 +0300 > From: Eli Zaretskii > Cc: ynyaaa@gmail.com, 23833@debbugs.gnu.org > > > From: Noam Postavsky > > Date: Thu, 23 Jun 2016 11:53:00 -0400 > > Cc: ynyaaa@gmail.com, 23833@debbugs.gnu.org > > > > Would it not make more sense if upcase converted dz into DZ? > > We want to go by what UnicodeData.txt says: > > 01F1;LATIN CAPITAL LETTER DZ;Lu;0;L; 0044 005A;;;;N;;;;01F3;01F2 > 01F2;LATIN CAPITAL LETTER D WITH SMALL LETTER Z;Lt;0;L; 0044 007A;;;;N;;;01F1;01F3;01F2 > 01F3;LATIN SMALL LETTER DZ;Ll;0;L; 0064 007A;;;;N;;;01F1;;01F2 > > The problem here is that both DZ and Dz name dz as their lower-case > variant, and Emacs can only have one pair. So we chose the other one > for the upcase conversion. We could switch them, but one of them will > necessarily be lost, this way or another. On second thought, I think you are right, and swapping the pairs will yield better results, so I've just did that on master for these and a few other similar characters. Of course, this doesn't resolve the original issue in any way, since characters that have title-case will still fail the OP's test. Thanks.