X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 4 Oct 2011 20:20:42 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygwin started speaking German today
Message-ID: <20111004182042.GA22299@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4E68AF35.9030002@cwilson.fastmail.fm> <201109082344.55506.bruno@clisp.org> <4E69D9EA.2050004@cwilson.fastmail.fm> <CAHWeT-bQ=Qm7qyWzb9s-=Lfgwjh-vHrEk2BvYQS6X6707+EWMg@mail.gmail.com> <20110909145921.GA27289@calimero.vinschen.de> <4E6F7AA1.4090808@redhat.com> <20111004122837.GA27229@calimero.vinschen.de> <4E8B0007.5020500@cwilson.fastmail.fm> <20111004142920.GA15757@calimero.vinschen.de> <4E8B4A86.5000607@xs4all.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <4E8B4A86.5000607@xs4all.nl>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Oct  4 20:03, Erwin Waterlander wrote:
> Corinna Vinschen schreef, Op 4-10-2011 16:29:
> >Does it? Even if I'm running a german OS, I absolutely hate to see
> >german diagnostic output from gcc, and I absolutely hate certain
> >programs using non-ASCII chars in output. (In)famous examples are
> >Unicode quoting chars rather than ' or ", or using the Unicode
> >hyphen character rather than -. But that's just me.
> 
> You got used to ASCII, like all the old-timers... ;)
> export LANG=C is your solution.
> 
> By the way, I noticed that with the default locale C.UTF-8 the
> nl_langinfo(CODESET) C function <langinfo.h> returns wrongly
> "ISO-8859-1",

Not for me:

  $ cat > setl.c <<EOF
  #include <stdio.h>
  #include <locale.h>
  #include <langinfo.h>

  int main(int argc, char **argv)
  {
    char *loc;
    if (argc > 1)
      loc = setlocale (LC_ALL, argv[1]);
    else
      loc = setlocale (LC_CTYPE, NULL);
    printf ("locale: %s charset: %s\n", loc, nl_langinfo (CODESET));
    return 0;
  }
  EOF
  $ gcc -o setl setl.c
  $ ./setl
  locale: C charset: ANSI_X3.4-1968
  $ ./setl C
  locale: C charset: ANSI_X3.4-1968
  $ ./setl C.utf8
  locale: C.utf8 charset: UTF-8
  $ ./setl C.UTF-8
  locale: C.UTF-8 charset: UTF-8


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

