X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:content-type; q=dns; s=default; b=IOI1Beo/fVk5QDOVZYPFJ rRp9+BYYnczY4kBtAguyvYUIEDyGgyLnYE3j2cIUy7kqt0Uf9CtnVSfcKfCb+Xiw 1zKYfetvcL2ELgSDxnL7IXgFgCpxzKS9o27Frshvm83dTY4RF3KcK1BimRj8qPJv XWDDyo75k1Td8RALtTtJ08= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:content-type; s=default; bh=inZ5eCc5c/BRlFWPn5mpcx3DHzg =; b=UWSqAufy83C+zN0puSlx7WABL0VJ5VCynaI3ufSuZwFr+kIgyJ2OIavKs4m cRw1+m0QmfqsqsnaXtlrMOTP1ThijEhAy4EpMFSPrBien6JbNsZCsn9NukDOF0zm CnSzJiiGMhUvZSquSOR0ALYBys2fWOCInEkMUdmWN7+LC3pc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=93,8, 1616, 938, windows-1251 X-HELO: mail-lf0-f53.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:reply-to:organization :user-agent:mime-version:to:subject:content-type; bh=AxsnYmx5Pd4kKjrP1ZcuA9XqywuC2BI/H8x0Df3TJWE=; b=hYyqkRy6dVgNv0bweFKRanc1g1C2whJr4g/gOP5vqR/sAFc5zKXG1aY/Bmb1hT02H+ CZbxDjelM7F22+RReDflDTZTXpbIUL5+FshayyqxdXDerG5dNxTk6SHDjh16bEDiy60T 7QkvMryc6Rg/+xi4rz0y1FZuZwIIpEQ3yo455DznGVBhmA9aqqqVPzftNTCiZPW4E2vY PSn0K9Xn9kXGMjf9ewXIJ8rJ6m14vZ2US1kvtd53V8DkhUoZfvyB+ubY60thWKVEkJ9i 7b1V14X0LR4jiAwp/4WyQv7q5S0FxpKmhWPkoNEfMxmz66iBA69zkyIWTqU8FNtzMr2v gCbA== X-Gm-Message-State: AG10YOSzww8lmrfkvmw9zmpbvs7vgWA6l/vN+GwWZuF5Ruq+e1880umMfgGTEYhpX9gKNw== X-Received: by 10.25.150.19 with SMTP id y19mr4847330lfd.0.1455875249151; Fri, 19 Feb 2016 01:47:29 -0800 (PST) Message-ID: <56C6E4A9.7020804@gmail.com> Date: Fri, 19 Feb 2016 12:47:21 +0300 From: "Andrey ``Bass'' Shcheglov" Reply-To: andrewbass AT gmail DOT com User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Motif: UIL support for more Cyrillic locales Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="98vHxTXpFTKVcCiSk4tl70uPHM27e2AQB" X-IsSubscribed: yes --98vHxTXpFTKVcCiSk4tl70uPHM27e2AQB Content-Type: multipart/mixed; boundary="------------090904010901000204070408" This is a multi-part message in MIME format. --------------090904010901000204070408 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Hi All, Motif's UIL compiler has long had an annoying problem: it often reports=20 "$LANG contains an unknown character set" error message for syntactically c= orrect *.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 variab= le). At the same time, UIL doesn't rely on the underlying C library but rather maintains its own s= tatic 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=3Dru_RU is currently valid, L= ANG=3Dru_RU.ISO-8859-5 is not), "CP1251" and "IBM866" charsets. Regards, Andrey. --------------090904010901000204070408 Content-Type: text/x-patch; name="openmotif-uil.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="openmotif-uil.patch" diff --git a/tools/wml/motif.wml b/tools/wml/motif.wml index 1ad79e9..397040e 100644 --- a/tools/wml/motif.wml +++ b/tools/wml/motif.wml @@ -93,7 +93,8 @@ CharacterSet Alias =3D "ISOLatin5"; Alias =3D "88595"; }; iso_cyrillic - { XmStringCharsetName =3D "ISO8859-5"; }; + { XmStringCharsetName =3D "ISO8859-5"; + Alias =3D "ISO-8859-5"; }; iso_arabic { XmStringCharsetName =3D "ISO8859-6"; Alias =3D "iso_latin6"; @@ -161,6 +162,17 @@ CharacterSet Alias =3D "KOI8R"; Alias =3D "KOI8U"; Alias =3D "KOI8RU"; }; + ansi_cyrillic + { XmStringCharsetName =3D "CP1251"; + Alias =3D "WINDOWS-1251"; + Alias =3D "ANSI-1251"; + ! The name of CP1251 in Solaris + Alias =3D "ANSI1251"; }; + dos_cyrillic + { XmStringCharsetName =3D "IBM866"; + Alias =3D "IBM-866"; + Alias =3D "CP866"; + Alias =3D "866"; }; XmFONTLIST_DEFAULT_TAG { FontListElementTag =3D XmFONTLIST_DEFAULT_TAG; }; =20 --------------090904010901000204070408-- --98vHxTXpFTKVcCiSk4tl70uPHM27e2AQB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlbG5KwACgkQFX2weoTrDGeK4gCfTirBfUlDyy5D0jPK+uNOnrT2 /AEAnjNp+CrdrDJswRcxx7WEgg92/ZAt =iwJF -----END PGP SIGNATURE----- --98vHxTXpFTKVcCiSk4tl70uPHM27e2AQB--