From: Eric Blake <eblake@redhat.com>
To: cygwin@cygwin.com
Subject: Re: cygwin started speaking German today
Date: Thu, 08 Sep 2011 13:13:00 -0000 [thread overview]
Message-ID: <4E68BF74.7070407@redhat.com> (raw)
In-Reply-To: <CAHWeT-ZZx4NizjFsSwDZiKS9kVBG84gmGCmtYoeQKJywao9B2g@mail.gmail.com>
On 09/08/2011 01:47 PM, Andy Koppe wrote:
> On 8 September 2011 13:04, Charles Wilson wrote:
>> On 9/8/2011 6:46 AM, Bruno Haible wrote:
>>> There is nothing to "fix". Users who don't want internationalization system-wide
>>> can set their locale in the "Regional Settings" control panel to English.
>>> Users who want to have a German Windows but a non-internationalized Cygwin can
>>> set LANG=C or LC_ALL=C - exactly like POSIX specifies.
>>
>> But setting LANG=C.UTF-8 (and not setting any of the LC_* vars at all)
>> should have the same behavior as setting LC_ALL=C.UTF-8.
>>
>> It does not -- and THAT's the bug.
>
> I agree.
>
> Further to that, however, Cygwin developers decided that the system
> default locale in case neither the relevant LC_* nor LANG are set
> should also be "C.UTF-8". That's what setlocale(LC_BLA, "") returns in
> that case. It's rather dubious behaviour of libintl to override that.
I'd argue that if none of LC_* or LANG are set, then
setlocale(LC_BLA,"") should indeed return the system default, rather
than being hard-coded to C. POSIX intentionally left behavior as
implementation-defined on which locale is returned when none of the
environment variables set a locale, precisely so that systems could
implement a sane default according to user preferences expressed in some
other manner.
>
> Cygwin isn't Windows; it's a POSIX environment on top of Windows.
> Taking the Regional Settings control panel into account might well
> make sense, but it ought to be left to the Cygwin developers to decide
> on this and implement it centrally.
I also agree with this sentiment - if setlocale(LC_BLA, "") is not
returning sane results (that is, if there is a system default, but
cygwin is not honoring those defaults), then the bug should be fixed in
cygwin, not libintl.
--
Eric Blake eblake@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
--
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
next prev parent reply other threads:[~2011-09-08 13:13 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-30 10:18 Voelker, Bernhard
2011-08-30 11:28 ` Charles Wilson
2011-09-08 2:31 ` Charles Wilson
2011-09-08 10:46 ` Bruno Haible
2011-09-08 10:55 ` Voelker, Bernhard
2011-09-08 11:06 ` Eric Blake
2011-09-08 12:05 ` Charles Wilson
2011-09-08 12:48 ` Andy Koppe
2011-09-08 13:13 ` Eric Blake [this message]
2011-09-08 12:51 ` Andy Koppe
2011-09-08 21:58 ` Bruno Haible
[not found] ` <201109082344.55506.bruno@clisp.org>
2011-09-09 9:18 ` Charles Wilson
2011-09-09 12:33 ` Andy Koppe
2011-09-09 15:00 ` Corinna Vinschen
2011-09-10 11:36 ` Thorsten Kampe
2011-09-13 18:39 ` Eric Blake
2011-09-17 21:50 ` David Sastre
2011-09-17 22:50 ` Ken Brown
2011-09-18 3:19 ` David Sastre
2011-10-04 12:29 ` Corinna Vinschen
2011-10-04 12:46 ` Charles Wilson
2011-10-04 14:30 ` Corinna Vinschen
2011-10-04 18:04 ` Erwin Waterlander
2011-10-04 18:21 ` Corinna Vinschen
2011-10-05 16:04 ` Erwin Waterlander
2011-10-05 16:28 ` Corinna Vinschen
2011-10-05 16:52 ` Erwin Waterlander
2011-10-05 17:32 ` Charles Wilson
2011-10-05 18:24 ` Ken Brown
2011-10-05 18:29 ` Corinna Vinschen
2011-10-05 18:44 ` Erwin Waterlander
2011-10-05 18:50 ` Yaakov (Cygwin/X)
2011-10-05 18:58 ` Christopher Faylor
2011-10-10 17:24 ` Corinna Vinschen
2011-10-11 15:41 ` Erwin Waterlander
2011-10-11 16:54 ` Charles Wilson
2011-10-11 17:29 ` Christopher Faylor
2011-10-16 18:42 ` Charles Wilson
2011-10-17 6:59 ` Corinna Vinschen
2011-10-17 13:17 ` Charles Wilson
2011-10-17 13:52 ` Corinna Vinschen
2011-10-17 13:58 ` Corinna Vinschen
2011-10-05 18:29 ` Corinna Vinschen
2011-10-06 1:35 ` [OT] " Andrey Repin
2011-10-05 12:08 ` Ken Brown
2011-09-09 15:13 ` Charles Wilson
2011-09-09 20:08 ` Andy Koppe
2011-09-08 13:45 ` Corinna Vinschen
2011-09-08 13:51 ` Corinna Vinschen
2011-09-08 20:57 ` Bruno Haible
2011-09-09 15:09 ` Corinna Vinschen
2011-09-09 15:58 ` Andy Koppe
2011-09-10 11:45 ` Thorsten Kampe
2011-09-10 13:50 ` Christopher Faylor
2011-09-10 16:10 ` Thorsten Kampe
2011-09-10 17:11 ` Christopher Faylor
2011-08-31 8:39 Voelker, Bernhard
2011-08-31 14:01 ` Charles Wilson
2011-08-31 15:19 ` Charles Wilson
2011-09-01 5:30 Voelker, Bernhard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E68BF74.7070407@redhat.com \
--to=eblake@redhat.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).