GNU bug report logs - #4848
23.1.50; \u and \x in string

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Mon, 2 Nov 2009 05:35:06 UTC

Severity: wishlist

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


Message #72 received at 4848-done <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: 4848-done <at> debbugs.gnu.org
Subject: Re: bug#4848: 23.1.50; \u and \x in string
Date: Mon, 13 Jun 2016 22:45:33 -0400
"Non-ASCII In Strings" now (24.5) says the following which explains
about "\xN" producing unibyte characters.

   You can also use hexadecimal escape sequences (ā€˜\xN’) and octal
escape sequences (ā€˜\N’) in string constants.  *But beware:* If a string
constant contains hexadecimal or octal escape sequences, and these
escape sequences all specify unibyte characters (i.e., less than 256),
and there are no other literal non-ASCII characters or Unicode-style
escape sequences in the string, then Emacs automatically assumes that it
is a unibyte string.  That is to say, it assumes that all non-ASCII
characters occurring in the string are 8-bit raw bytes.




This bug report was last modified 9 years and 36 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.