Re: Bug#495494: marked as done (nl_langinfo() returns ANSI_X3.4-1968 instead of UTF-8)
- To: debian-glibc@lists.debian.org
- Subject: Re: Bug#495494: marked as done (nl_langinfo() returns ANSI_X3.4-1968 instead of UTF-8)
- From: Mikko Ahonen <mikko.ahonen@grupposoftware.com>
- Date: Thu, 25 Sep 2008 03:57:33 -0700 (PDT)
- Message-id: <[🔎] 19667285.post@talk.nabble.com>
- In-reply-to: <handler.495494.D495494.121901988331167.ackdone@bugs.debian.org>
- References: <20080817235318.15088.80367.reportbug@wakko.nahmias.net> <handler.495494.D495494.121901988331167.ackdone@bugs.debian.org>
Debian Bug Tracking System wrote:
>
>> Why would nl_langinfo() be different than everything else and how can I
>> fix this? Note that the manpage specifies that it should return the same
>> string as `locale charmap` -- that is obviously not the case here.
>
> This is not a bug. On startup of the main program, the portable "C"
> locale is selected as default. If you want to select the locale from the
> environment, you should call setlocale(LC_ALL, ""); at the beginning of
> the program.
>
I encountered the same problem today. The problem for me was that I did not
have locales package installed. setlocale() failed but the program did not
check the return value.
Best regards,
Mikko Ahonen
--
View this message in context: http://www.nabble.com/Bug-495494%3A-nl_langinfo%28%29-returns-ANSI_X3.4-1968-instead-of-UTF-8-tp19024514p19667285.html
Sent from the debian-glibc mailing list archive at Nabble.com.
Reply to: