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: Eli Zaretskii
Subject: Re: Character literals for Unicode (control) characters
Date: Tue, 15 Mar 2016 19:10:24 +0200

> 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.



reply via email to

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