emacs-devel
[Top][All Lists]
Advanced

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

Re: Character literals for Unicode (control) characters


From: Nikolai Weibull
Subject: Re: Character literals for Unicode (control) characters
Date: Wed, 16 Mar 2016 09:16:12 +0100

On Tue, Mar 15, 2016 at 6:10 PM, Eli Zaretskii <address@hidden> wrote:
>> Date: Tue, 15 Mar 2016 12:09:50 +0100
>> From: Nikolai Weibull <address@hidden>
>> Cc: Paul Eggert <address@hidden>, address@hidden, address@hidden,
>>       Lars Ingebrigtsen <address@hidden>, Emacs Developers <address@hidden>
>>
>> >> /* Bound on the length of a Unicode character name.
>> >>     As of Unicode 9.0.0 the maximum is 83, so this should be safe. */
>> >> enum { UNICODE_CHARACTER_NAME_LENGTH_BOUND = 199 };
>> >> ...
>> >>     char name[UNICODE_CHARACTER_NAME_LENGTH_BOUND + 1];
>> >
>> > Perhaps we should ask on the Unicode mailing list, I somehow remember
>> > seeing a mandatory limit on the length of a character's name.
>>
>> No such limit is mentioned in section 4.8.

> Indeed, there is none.  However, this old discussion:
>
>   http://unicode.org/mail-arch/unicode-ml/Archives-Old/UML022/0845.html
>   http://unicode.org/mail-arch/unicode-ml/Archives-Old/UML022/0872.html
>
> indicates that 128 should be good enough.

Given that this has held true for 16 years, I suppose that that limit
won’t have to be adjusted anytime soon :-).

The shortest name is now “OX”, so that limit has, however, changed in
the interim.



reply via email to

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