From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolai Weibull Newsgroups: gmane.emacs.devel Subject: Re: Character literals for Unicode (control) characters Date: Wed, 16 Mar 2016 09:16:12 +0100 Message-ID: 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> <83oaafbrb3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1458116222 31115 80.91.229.3 (16 Mar 2016 08:17:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2016 08:17:02 +0000 (UTC) Cc: Paul Eggert , johnw@gnu.org, Emacs Developers , Philipp Stephani , Lars Ingebrigtsen , Nikolai Weibull To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 16 09:16:46 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 1ag6dK-0006mT-BE for ged-emacs-devel@m.gmane.org; Wed, 16 Mar 2016 09:16:46 +0100 Original-Received: from localhost ([::1]:53793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag6dG-0002o8-Df for ged-emacs-devel@m.gmane.org; Wed, 16 Mar 2016 04:16:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag6cy-0002nv-Iw for emacs-devel@gnu.org; Wed, 16 Mar 2016 04:16:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ag6cv-0001qd-27 for emacs-devel@gnu.org; Wed, 16 Mar 2016 04:16:24 -0400 Original-Received: from disu.se ([71.19.156.204]:54705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag6cp-0001mV-AD; Wed, 16 Mar 2016 04:16:15 -0400 Original-Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by disu.se (Postfix) with ESMTPSA id 29894C32D; Wed, 16 Mar 2016 09:16:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=disu.se; s=mail; t=1458116174; bh=JsnqmwkBtaUsCwcW1AdonYVGyfa1yiExD68ohrfLIP8=; l=1272; h=In-Reply-To:References:Date:Subject:From:To:Cc:From; b=xchCxP74JzZODgkXd7UjX1VrcszlVDSK4rFkkXzpvNYPuGLcexlhftOVfLBAKtSac BDc+WdSHMeI3Y/TZS+1eLeDbWNfuNE/dcGbwzQxCjdr4HPaixeasjCbS5GXwnfesnw 8AxoJUGTpbGpEqPZH4b2P2FvADeXNCpQylxCK6es= Original-Received: by mail-lb0-f179.google.com with SMTP id x1so42690721lbj.3; Wed, 16 Mar 2016 01:16:14 -0700 (PDT) X-Gm-Message-State: AD7BkJKb3gKMlnVtXaEXXhPM4vNjoCubkI2m+2eoTnH4DqUmxdDJfnQqzBB3e4Lib+gSqvU7KakbuVMoDQLfvg== X-Received: by 10.112.157.66 with SMTP id wk2mr681890lbb.53.1458116172458; Wed, 16 Mar 2016 01:16:12 -0700 (PDT) Original-Received: by 10.25.4.4 with HTTP; Wed, 16 Mar 2016 01:16:12 -0700 (PDT) In-Reply-To: <83oaafbrb3.fsf@gnu.org> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 71.19.156.204 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:201796 Archived-At: On Tue, Mar 15, 2016 at 6:10 PM, Eli Zaretskii wrote: >> Date: Tue, 15 Mar 2016 12:09:50 +0100 >> From: Nikolai Weibull >> Cc: Paul Eggert , p.stephani2@gmail.com, johnw@gnu.o= rg, >> 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 =3D 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=E2=80=99t have to be adjusted anytime soon :-). The shortest name is now =E2=80=9COX=E2=80=9D, so that limit has, however, = changed in the interim.