bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50752: 28.0.50; easy-menu-define lowers the menu-bar key


From: Lars Ingebrigtsen
Subject: bug#50752: 28.0.50; easy-menu-define lowers the menu-bar key
Date: Tue, 19 Oct 2021 05:40:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Kangas <stefan@marxist.se> writes:

> The attached patch is what I have so far.  It's obviously not yet
> finished, but all tests pass except for the one for "I->i" conversion in
> the Turkish language environment.

I set up a Turkish lang environment to test, and I'm just getting very
odd results all over from downcase.

After generating the locale, I said:

LANG=tr_TR.UTF-8 ./src/emacs -Q

and

(downcase "İ i I ı")
=> "i̇ i ı ı"

(upcase "İ i I ı")
=> "İ İ I I"

So everything here looks totally fine.  I is downcased to ı as supposed.
But look!

(downcase "I")
=> "1"

Here it's downcasing

  name: LATIN CAPITAL LETTER I

to

  name: DIGIT ONE

!?

But if I put something else that's non-ASCII into the string, then it
downcases correctly:

(downcase "I é")
=> "ı é"

So if the string is multibyte, it downcases correctly, but if not, it...
turns a capital I into the digit 1?

(downcase "ABCDEFGHIJKLMNOPQRSTUVWXYZ")
=> "abcdefgh1jklmnopqrstuvwxyz"

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]