From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 857 invoked by alias); 9 Jan 2019 19:43:19 -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 837 invoked by uid 89); 9 Jan 2019 19:43:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=jony, JonY, cygwins, coup X-HELO: mail-io1-f67.google.com Received: from mail-io1-f67.google.com (HELO mail-io1-f67.google.com) (209.85.166.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Jan 2019 19:43:17 +0000 Received: by mail-io1-f67.google.com with SMTP id m19so6989955ioh.3 for ; Wed, 09 Jan 2019 11:43:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=SPV5Wn6PHd8glGI9WzwgqhN133YdFRPZAvUTeOSymow=; b=bC2D6Os6YLLGLizMuBvZ/o+TJXC59x2a/dDY/5CTU7zcAJ8JtkNa3aPDlQtR5iLCgA K0jsWxbMOSWtXvwKdr2gH21tbrjWwcP1vZzSlnOxQJd3aErVSkVCOT/FEXubcDHhhGar 73/MSPNCex/eYyedkctR+zC6l7LV3RCWyhEbl/qRio/6mTEE8+V/V2yH5JKpmASMy7pp tkYqpqNVwZO0N7MDVg02Ymkg+4pgzx1/Fv9mnjpVe9uUgIGEAmGA7QBx7jxQa3XsppsR YTbgllY2txgOSVx7hI9tC2Xmx18dbB05jCdqdX8S9ctMy/N0kmLk9lbBrfaxR4viNj7k /Krg== MIME-Version: 1.0 Received: by 2002:a4f:1fc4:0:0:0:0:0 with HTTP; Wed, 9 Jan 2019 11:43:14 -0800 (PST) In-Reply-To: <2ec22a55-c5d6-d425-02fe-ec9508a30275@obj-sys.com> References: <92c7e8c2-c440-1bb8-f329-23951d10dffe@gmail.com> <2ec22a55-c5d6-d425-02fe-ec9508a30275@obj-sys.com> From: Lee Date: Wed, 09 Jan 2019 19:43:00 -0000 Message-ID: Subject: Re: i686-w64-mingw32-gcc: LC_MESSAGES To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00051.txt.bz2 On 1/9/19, Douglas Coup wrote: > > On 1/9/2019 1:14 PM, Lee wrote: >> On 1/9/19, JonY wrote: >>> On 1/8/19 9:26 PM, Lee wrote: >>>> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/locale.h.html >>>> has a note for LC_MESSAGES: >>>> The functionality described is an extension to the ISO C standard. >>>> Application developers may make use of an extension as it is >>>> supported on all POSIX.1-2017-conforming systems. >>>> >>>> i686-w64-mingw32-gcc doesn't have LC_MESSAGES defined. >>>> Is that an oversight, something missing in windows, or .. ?? >>>> >>> Windows MSVCR isn't POSIX nor ISO C compliant, so you shouldn't be >>> referring to opengroups, only against MSDN. >> >> What's a Windows MSVCR? >> >> Since the same program compiled with cygwins' gcc has LC_MESSAGES >> defined, I was guessing it was just a library thing and maybe it just >> hadn't been implemented in the mingw libraries yet.. but it sounds >> like it's not an oversight & Microsoft needs to support LC_MESSAGES >> before i686-w64-mingw32-gcc will. Is that about right? >> >> Thanks, >> Lee >> >> > MSVCR = MicroSoft Visual C Run-time (I think) 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? The background for my question is https://github.com/htacg/tidy-html5/issues/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 language, but setlocale(LC_ALL, ""); tidySetLanguage( setlocale(LC_MESSAGES, NULL) ); probably isn't a good example if LC_MESSAGES is missing on some systems. Thanks Lee -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple