Subject: Re: bug#23833: 24.5; assoc-string with CASE-FOLD may fail

From: Eli Zaretskii <[email-masked]>
Date: Thu, 23 Jun 2016 22:25:53 +0300

> Date: Thu, 23 Jun 2016 19:19:09 +0300
> From: Eli Zaretskii <[email-masked]>
> Cc: [email-masked], [email-masked]
> 
> > From: Noam Postavsky <[email-masked]>
> > Date: Thu, 23 Jun 2016 11:53:00 -0400
> > Cc: [email-masked], [email-masked]
> > 
> > Would it not make more sense if upcase converted ǳ into Ǳ?
> 
> We want to go by what UnicodeData.txt says:
> 
>   01F1;LATIN CAPITAL LETTER DZ;Lu;0;L;<compat> 0044 005A;;;;N;;;;01F3;01F2
>   01F2;LATIN CAPITAL LETTER D WITH SMALL LETTER Z;Lt;0;L;<compat> 0044 007A;;;;N;;;01F1;01F3;01F2
>   01F3;LATIN SMALL LETTER DZ;Ll;0;L;<compat> 0064 007A;;;;N;;;01F1;;01F2
> 
> The problem here is that both Ǳ and ǲ name ǳ 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.