From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4848: 23.1.50; \u and \x in string Date: Tue, 03 Nov 2009 09:49:54 -0500 Message-ID: References: Reply-To: Stefan Monnier , 4848@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1257261592 29182 80.91.229.12 (3 Nov 2009 15:19:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Nov 2009 15:19:52 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 4848@emacsbugs.donarmstrong.com To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 03 16:19:45 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N5LAd-00024J-1f for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Nov 2009 16:19:43 +0100 Original-Received: from localhost ([127.0.0.1]:49262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5LAc-0005xa-28 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Nov 2009 10:19:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5L9o-0005QV-IG for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2009 10:18:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5L9j-0005Np-Bt for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2009 10:18:51 -0500 Original-Received: from [199.232.76.173] (port=59830 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5Kyc-0000Jp-TU for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2009 10:07:19 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37416) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N5Kyc-0006k8-7V for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2009 10:07:18 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA3F7G3f027571; Tue, 3 Nov 2009 07:07:16 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nA3Et5Ek025724; Tue, 3 Nov 2009 06:55:05 -0800 Resent-Date: Tue, 3 Nov 2009 06:55:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 03 Nov 2009 14:55:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4848 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125725980025247 (code B ref -1); Tue, 03 Nov 2009 14:55:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Nov 2009 14:50:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA3EnwpB025244 for ; Tue, 3 Nov 2009 06:50:00 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:45405) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1N5Khp-0004HT-Ue for emacs-pretest-bug@gnu.org; Tue, 03 Nov 2009 09:49:57 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1N5Kho-0003cd-Jl for emacs-pretest-bug@gnu.org; Tue, 03 Nov 2009 09:49:57 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:12223 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5Kho-0003cQ-9O; Tue, 03 Nov 2009 09:49:56 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap0EAITR70pFpYlL/2dsb2JhbACBUN0XhD0EiG8 X-IronPort-AV: E=Sophos;i="4.44,674,1249272000"; d="scan'208";a="48605229" Original-Received: from 69-165-137-75.dsl.teksavvy.com (HELO pastel.home) ([69.165.137.75]) by ironport2-out.pppoe.ca with ESMTP; 03 Nov 2009 09:49:54 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 3784481F9; Tue, 3 Nov 2009 09:49:54 -0500 (EST) In-Reply-To: (Richard Stallman's message of "Tue, 03 Nov 2009 08:39:00 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 03 Nov 2009 10:18:51 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32388 gmane.emacs.pretest.bugs:25164 Archived-At: >> "\ue1" gives the error "Non-hex digit used for Unicode escape". >> Why doesn't it work to give the Unicode character =C3=A1? > I think you mean \u00e1 > Why shouldn't \ue1 work? Because the \u format is \uNNNN with exactly 4 hex digits. >> Note that \xe1 does not work for this any more. > Indeed, this refers to the byte 225 rather than to the char 225. > This needs to be documented. But is it a good meaning for \x? It > will rarely be useful this way. Also, is it an incompatible change? I haven't managed to keep track of all the changes w.r.t how we treat \NNN vs \xMM vs \xMMMMM and how it impacts whether the resulting string is unibyte or multibyte. My understanding is that there have been several incompatible changes in this area (and some of those were inevitable). E.g. in Emacs-22: ELISP> "\222" "\222" ELISP> "\xa4" "\xa4" ELISP> (multibyte-string-p "\222") nil ELISP> (multibyte-string-p "\xa4") t ELISP> (multibyte-string-p "\xa45") t ELISP>=20 whereas in Emacs-23.1: ELISP> "\222" "\222" ELISP> "\xa4" "\244" ELISP> (multibyte-string-p "\222") nil ELISP> (multibyte-string-p "\xa4") nil ELISP> (multibyte-string-p "\xa45") t ELISP>=20 Of course, given that fact that char-numbers have changed, the backward compatibility of \xNNNN is irrelevant since they do not represent the same char any more. Stefan