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


View this message in rfc822 format

From: Jason Rumney <jasonr <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>, 4848 <at> debbugs.gnu.org
Cc: rms <at> gnu.org
Subject: bug#4848: 23.1.50; \u and \x in string
Date: Mon, 02 Nov 2009 15:33:49 +0800
Stefan Monnier wrote:

>> "\ue1" gives the error "Non-hex digit used for Unicode escape".
>> Why doesn't it work to give the Unicode character á?
>>     
>
> I think you mean \u00e1
>   

I think the error message means "Insufficient hex digits used for 
Unicode escape".

>> Note that \xe1 does not work for this any more.
>>     
>
> Indeed, this refers to the byte 225 rather than to the char 225.
>   
>
> \x00e1 also works like \u00e1.
>   

That is definitely confusing.




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.