www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=1.4 required=5.0 tests=AWL,BAYES_50,RCVD_IN_JMF_BL,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
X-DNSBL-MILTER: | Passed |
X-Matched-Lists: | [] |
Message-ID: | <380-220091222910461682@cantv.net> |
Reply-To: | rodmedina AT cantv DOT net |
From: | "Rodrigo Medina" <rodmedina AT cantv DOT net> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: gcc4[1.7] printf treats differently a string constant and a character array |
Date: | Tue, 29 Dec 2009 06:16:01 -0430 |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
>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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |