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:to:references:from:subject:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=xKCg /LkZkk3fQvT1cxd6qM5cbAVUTN5UEp3GLcBzZXQpFMjvUxvUbLPjEkxiEhG3wclZ 6XwGrh6WtyYuwJFKX69d+AWqWuoOjzk7POwGUZGAm0IDJHhjvP5x5kVbT2p7ORX7 ROrsJYROWrycrcU7P2ulz1VMdHEKwvNsd4kteR8= 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:to:references:from:subject:message-id:date :mime-version:in-reply-to:content-type; s=default; bh=+7xrrRScXS O5ZGSlY/M3mMOquFE=; b=pJcT5/0G0m/mCMxYfv37TOegOBAVTNpqEQmWixeIvR VM0C3lXU6v7mBrJm5XMFkmxtR9FmOk4JR/GWw5wm+CNJGU+8296XvWJtjxPVMWz7 3VZea8bJr0tKKz/Lgqn+Y/mKpIhpZvXfB5XzhUF9a2xnbiMYF147X1b6h2HY13rp o= 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-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=proprietary X-HELO: mail-pf1-f176.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:references:from:openpgp:autocrypt:subject:message-id:date :user-agent:mime-version:in-reply-to; bh=QMWjPbxZLiaLStDLCdhUbgVF2+LyHXtZsOiHr+TfPgw=; b=eDiBh+6lWw2ks+dTtssWQMIu9Tl/8ltCjT18xJGeTjFao3NKPAo+FdhoIcwCI0KvGh UGHMgSnNRjsO59csG8awlfT4U91cQQlZZiWJXojQ+wQBRCgalStXijuY5bPGNmev/uWI dgnpy4VxnFOqrpRYUqP9Kups/AofSO0PSc/mfg+xbAMyKckyXCvgkPQIrDBvUbCQWBCm uDLX7PCkXShyKoOZdoyuUf0eYE5mWe59D4VaL3QP3TNHhcqWZmyLrI4P2+XSABKXmibD r/EEElfXipSSkpYlqBJReNiAGzhwqdGbHCM5+lXNXe0kCnAkGYR0zCBsHWwf0cl/UqR1 HJkQ== To: cygwin AT cygwin DOT com References: <92c7e8c2-c440-1bb8-f329-23951d10dffe AT gmail DOT com> <2ec22a55-c5d6-d425-02fe-ec9508a30275 AT obj-sys DOT com> From: JonY <10walls AT gmail DOT com> Openpgp: preference=signencrypt Subject: Re: i686-w64-mingw32-gcc: LC_MESSAGES Message-ID: <7e17d15b-1c68-1580-60f8-0ad091a31570@gmail.com> Date: Wed, 9 Jan 2019 23:43:33 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BdVpx11FdEZR6FBM0gP3ynNNQvjpCbv39" X-IsSubscribed: yes --BdVpx11FdEZR6FBM0gP3ynNNQvjpCbv39 Content-Type: multipart/mixed; boundary="kFHGthv4XSOWo5BkZx3iRM2he5OVM14j9"; protected-headers="v1" From: JonY <10walls AT gmail DOT com> To: cygwin AT cygwin DOT com Message-ID: <7e17d15b-1c68-1580-60f8-0ad091a31570 AT gmail DOT com> Subject: Re: i686-w64-mingw32-gcc: LC_MESSAGES References: <92c7e8c2-c440-1bb8-f329-23951d10dffe AT gmail DOT com> <2ec22a55-c5d6-d425-02fe-ec9508a30275 AT obj-sys DOT com> In-Reply-To: --kFHGthv4XSOWo5BkZx3iRM2he5OVM14j9 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 1/9/19 7:43 PM, Lee wrote: >> MSVCR =3D MicroSoft Visual C Run-time (I think) >=20 Yes, as implemented by msvcrt.dll. > Meaning i686-w64-mingw32-gcc uses the Microsoft libraries vs. cygwin > gcc using posix compliant libraries? Implying LC_MESSAGES not being > defined is yet another instance of Microsoft not following accepted > standards? >=20 Cygwin has its own runtime, Windows has its own. Microsoft does whatever it well pleases, it never did claim POSIX or ISO C compliance. See the printf/scanf hacks in mingw. > The background for my question is https://github.com/htacg/tidy-html5/iss= ues/770 > Tidy removed the setlocale call from the library init function, so if > users want a specific locale/language they're going to have to set it > up themselves. > I'd like to update the tidylib example code showing how to set the langua= ge, but > setlocale(LC_ALL, ""); > tidySetLanguage( setlocale(LC_MESSAGES, NULL) ); > probably isn't a good example if LC_MESSAGES is missing on some systems. >=20 > Thanks > Lee >=20 Unfortunately, I don't know how that should be implemented on top of a proprietary runtime layer, or any alternative function calls for that matter. --kFHGthv4XSOWo5BkZx3iRM2he5OVM14j9-- --BdVpx11FdEZR6FBM0gP3ynNNQvjpCbv39 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5QrdnbBX9Ppk4bbPcTtf4pwUXUUFAlw2hyYACgkQcTtf4pwU XUW58A//XLtG+dJx/cv2kjwLf9/BQLrmHcKK1nh6f4IydM5JiMD3WpWZjcwADVBe 9wfugBq6v1DAqd76p1yTPCY8dWMw8YuTdVG71RB88IImatKCMi035xIUwRWR6bzd fRlTlDbzLZbn+PJfAzDPkOpPs7vM0elcvMc2jeSrXqiFME3Ik6bTfgBJTqs8BM0h nUv18oEjpjT2usrk6AXybfzIk++kBXHTLGhbaGcwgMSVc6CIUN/llHroX1Jc0nkw HIZjmDaosGrWDa1A3lsM0Il0PfI84AMl25jpDA9kXeJL1oooLv9x5PDNTk6OCZWb yHiSn7jMoDb4/vNeEbHXUu+SLDU2UPvVXSW7CfxFXCY53duN90VaW0v0zesQfxUo B0TE1uSiARSh7HZ4AtxSLyZYxFoJMjOip/kVASwuBTwmWA9jlcBpKFsq3IAEGkQ8 pf4aGoxyqvr643jl8p03h1n+X5INheHBzk9ZirYR6cmIellEpWKxaPW+lFSWCSKh b1WLyRntzN4WnbdrEscacxIFdQOpnsTkDPDDgd8Bb9hCIEJxvrbjrjK49NEVCJHT sMmba6xUjSVLuttWAMHOl8c5QaGYmtKAYNEalbGlTO4aA/bfgu9VPpKq6B8EhHHO xl8p0u2l09v537iL+ciUDT5wRfNzPWf+M3+oh82gQMZtNVGjetM= =Lcsg -----END PGP SIGNATURE----- --BdVpx11FdEZR6FBM0gP3ynNNQvjpCbv39--