Motif: UIL support for more Cyrillic locales

Andrey ``Bass'' Shcheglov andrewbass@gmail.com
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 <https://motif.ics.com/forum/comp-error-lang-contains-unknown>,
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.

Regards,
Andrey.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: openmotif-uil.patch
Type: text/x-patch
Size: 1136 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160219/54df0371/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160219/54df0371/attachment.sig>


More information about the Cygwin mailing list