>>>>> "RB" == Ran Benita <[email protected]> writes:

RB> But the grammar in the parser and the implementation say:
RB>     ESCAPED_CHAR  ::= ('\\' | '\"' | OCTAL | HEX )
RB>     HEX           ::= '\' (x|X) HEX_CHAR [HEX_CHAR]]
RB>     HEX_CHAR      ::= (0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F|a|b|c|d|e|f)

Given that the original code was written for eight-bit encodings, I
suppose that is not surprising that the grammar is only cabable of
octal and hex octets.

I presume a different parser must be used for the XLC_LOCALE files,
as those have longer hex escapes (also using \x).

Should we fix the doc or update the parser to handle larger hex?

And on that front, should we add a \u escape to insert the utf-8 for
a given code point? 

-JimC
--
James Cloos <[email protected]>         OpenPGP: 1024D/ED7DAEA6
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to