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.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to