From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Character literals for Unicode (control) characters Date: Tue, 15 Mar 2016 19:10:24 +0200 Message-ID: <83oaafbrb3.fsf@gnu.org> References: <87r3fsjenn.fsf@gnus.org> <56D8623F.6060806@cs.ucla.edu> <838u1vwqj9.fsf@gnu.org> <56DC7227.10708@cs.ucla.edu> <56DC7F18.8050103@cs.ucla.edu> <83si03v0c3.fsf@gnu.org> <56E7191A.60507@cs.ucla.edu> <83y49kby5o.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1458061880 14515 80.91.229.3 (15 Mar 2016 17:11:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Mar 2016 17:11:20 +0000 (UTC) Cc: p.stephani2@gmail.com, eggert@cs.ucla.edu, larsi@gnus.org, johnw@gnu.org, emacs-devel@gnu.org To: Nikolai Weibull Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 15 18:11:13 2016 Return-path: Envelope-to: ged-emacs-devel@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 1afsUw-0001vv-P8 for ged-emacs-devel@m.gmane.org; Tue, 15 Mar 2016 18:11:10 +0100 Original-Received: from localhost ([::1]:50140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afsUw-00063Y-3a for ged-emacs-devel@m.gmane.org; Tue, 15 Mar 2016 13:11:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afsUp-00062R-P0 for emacs-devel@gnu.org; Tue, 15 Mar 2016 13:11:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afsUg-0005G2-Rv for emacs-devel@gnu.org; Tue, 15 Mar 2016 13:10:58 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afsUc-0005FU-36; Tue, 15 Mar 2016 13:10:50 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3952 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1afsUb-00087a-5m; Tue, 15 Mar 2016 13:10:49 -0400 In-reply-to: (message from Nikolai Weibull on Tue, 15 Mar 2016 12:09:50 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:201784 Archived-At: > Date: Tue, 15 Mar 2016 12:09:50 +0100 > From: Nikolai Weibull > Cc: Paul Eggert , p.stephani2@gmail.com, johnw@gnu.org, > Lars Ingebrigtsen , Emacs Developers > > >> /* 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.