[PATCH libX11] Compose.man: fix escaped hexadecimal char description

James Cloos cloos at jhcloos.com
Sun Feb 16 16:53:33 PST 2014


>>>>> "RB" == Ran Benita <ran234 at gmail.com> 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 <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the xorg-devel mailing list