This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: gcc4[1.7] printf treats differently a string constant and a character array
- From: "Rodrigo Medina" <rodmedina at cantv dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 29 Dec 2009 06:16:01 -0430
- Subject: Re: gcc4[1.7] printf treats differently a string constant and a character array
- Reply-to: rodmedina at cantv dot net
>2009/12/28 Andy Koppe:
>...
>Ah, the problem actually is that your program is missing a call to
>setlocale(LC_CTYPE, "") to switch to the locale and character set
>specified in the environment...
That worked!, but what that means is that if one wants to
use any locale other than C.UTF-8, one has, not only to compile again the
programs , but also to modify them. Perhaps the best thing to do
is to read the LC_ALL variable from the environment and then call
setlocale.
Thanks
RM
--
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