Motif: UIL support for more Cyrillic locales

Andrey ``Bass'' Shcheglov
Fri Feb 19 09:47:00 GMT 2016

Hi All,

Motif's UIL compiler has long had an annoying problem: it often reports 
"$LANG contains an unknown character set" error message for syntactically correct *.uil files
(see <>,
more examples can be easily looked up).

The issue is caused by the fact that whenever an *.uil file doesn't declare its encoding explicitly,
UIL compiler assumes the encoding from the environment (namely, LANG variable). At the same time,
UIL doesn't rely on the underlying C library but rather maintains its own static list of supported encodings
(in tools/wml/motif.wml).

The above leads to inability to not only use UIL in certain locales,
but also build Motif itself (as UIL is bootstrapped and invoked during the build process).

Attached is the patch that fixes the problem for Cyrillic locales.
Support has been added for "ISO-8859-5" (LANG=ru_RU is currently valid, LANG=ru_RU.ISO-8859-5 is not),
"CP1251" and "IBM866" charsets.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: openmotif-uil.patch
Type: text/x-patch
Size: 1136 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Cygwin mailing list