From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81859 invoked by alias); 19 Feb 2016 09:47:34 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 81846 invoked by uid 89); 19 Feb 2016 09:47:33 -0000 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 Received: from mail-lf0-f53.google.com (HELO mail-lf0-f53.google.com) (209.85.215.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 19 Feb 2016 09:47:32 +0000 Received: by mail-lf0-f53.google.com with SMTP id 78so50095580lfy.3 for ; Fri, 19 Feb 2016 01:47:32 -0800 (PST) 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) Received: from [172.23.202.33] ([194.67.36.34]) by smtp.gmail.com with ESMTPSA id td7sm1396449lbb.6.2016.02.19.01.47.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Feb 2016 01:47:28 -0800 (PST) Message-ID: <56C6E4A9.7020804@gmail.com> Date: Fri, 19 Feb 2016 09:47:00 -0000 From: Andrey ``Bass'' Shcheglov Reply-To: andrewbass@gmail.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@cygwin.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 X-SW-Source: 2016-02/txt/msg00297.txt.bz2 --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 Content-length: 1021 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" Content-length: 1176 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" Content-length: 181 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlbG5KwACgkQFX2weoTrDGeK4gCfTirBfUlDyy5D0jPK+uNOnrT2 /AEAnjNp+CrdrDJswRcxx7WEgg92/ZAt =iwJF -----END PGP SIGNATURE----- --98vHxTXpFTKVcCiSk4tl70uPHM27e2AQB--