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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=CuYeMhY Nxa3WCn9QMKhv8ahNu0mM/kY2ETfFQGlirD76RMfPKrbaHn8mASyT1gBGArqe6jq CMxi4V382JbooSHAAkv46cUqaJU3RGsEG0Y+SHrnPfSHmaUjNH4N17lipdjJLYHc IdsIV6ULIdagCqfWvTiQH+Qscl1Fy3tSuHrQ= 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=MP8CzC+5dgA0/ hglCkKtvHw+emM=; b=BMFFrXL83jFhRisxkO6ODMmAV57O8kv1tlNn91gx/6Le4 Its6NJHOU9zmB7lLtm9h1wbfdV15alha2ZK5UjjynH0N02/jmKAFwd/nkfyOeI0h m+Afhqd4tUnBUcS1P/zhhyPeKaPDNLQlzg0InTUJ7tJocpu7jldY81mr3Mwh0I= 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.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, shrug, claim X-HELO: mail-it1-f175.google.com 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=L0Nc1KhzlauwWeHIJuhdmr8p40uaoz0IF6u9+Eo5L/I=; b=VQdawt9qj56GhuNcCSHkbtqzVsi1h7xfqdJoA1Ba8GqPGGRiAWlgzwMuGXzE48ottV 3/VGyFERLmb4X44JFVqkA0U6iGugLWPoLhL/ljft2pB52YGXBGWybV1A2MW+MOz1Tkr1 dKkByXIif18tuUj1JNpRtgyQkJ0ZqUxbJiXmk6nDJYtdcViAek0J3Rq7B6Wv8QFNoLmY fFRaDpdncub04N7pcEFdO9LWa1taqm8GqSP+LymDAkmQ3r//298W4prlkUnESYjRwfkl j/KjWa8v7H/vP0siGvveL3PeglDFw8CJcQmahhHbY9V6XJt559/871n+AjfbKLWSZUV1 Hj+A== MIME-Version: 1.0 In-Reply-To: <7e17d15b-1c68-1580-60f8-0ad091a31570@gmail.com> References: <92c7e8c2-c440-1bb8-f329-23951d10dffe AT gmail DOT com> <2ec22a55-c5d6-d425-02fe-ec9508a30275 AT obj-sys DOT com> <7e17d15b-1c68-1580-60f8-0ad091a31570 AT gmail DOT com> From: Lee Date: Wed, 9 Jan 2019 19:51:14 -0500 Message-ID: Subject: Re: i686-w64-mingw32-gcc: LC_MESSAGES To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes On 1/9/19, JonY wrote: > On 1/9/19 7:43 PM, Lee wrote: >>> MSVCR = MicroSoft Visual C Run-time (I think) >> > > Yes, as implemented by msvcrt.dll. cool - makes much more sense now. Thank you! >> 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? >> > > 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/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. >> > > 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. Me either, which is why I was trying to keep it limited to system calls. But tidySetLanguage( setlocale(LC_ALL, NULL) ); isn't a good idea because setlocale returns a string starting with the value of LC_COLLATE & I suspect there's plenty enough others that prefer ascii sort order to dictionary sort order or whatever it's called. ^shrug^ since it is just example code, if LC_MESSAGES isn't defined maybe just tell them to pick a default & use that... 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