Article View: comp.sys.mac.programmer.codewarrior
Article #335Re: Does mwcc work on Tiger?
From: Stefan Haller
Date: Fri, 03 Jun 2005 08:07
Date: Fri, 03 Jun 2005 08:07
26 lines
1387 bytes
1387 bytes
Stefan Haller <stk@snafu.de> wrote:
> Anybody using the comand line compilers on 10.4?
>
> When saving the following simple program as /tmp/x.cpp:
>
> int main()
> {
> double x = 0.5;
> return 0;
> }
>
> , I get the error message
>
> Error : invalid floating-point constant
> /tmp/x.cpp line 3 double x = 0.5;
I figured it out: it's a locale thing. I have LANG=de_DE.ISO8859-1 in
my environment; if I unset LANG, it compiles fine. Seems like a pretty
bad bug to me; parsing of C code should not be locale-dependent.
--
Stefan Haller
Berlin, Germany
http://home.snafu.de/stk/
Technical Details
Message-ID:
<1gxkrij.u8l7igl0m4f8N%stk@snafu.de>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<1gxe8gf.mskt5113plybmN%stk@snafu.de>Show Full Headers
Complete Article Headers
X-Google-Thread: f635e,c558504823d2d9a5 X-Google-Thread: 10bcce,c558504823d2d9a5 X-Google-Attributes: gidf635e,gid10bcce,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!not-for-mail From: stk@snafu.de (Stefan Haller) Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac Subject: Re: Does mwcc work on Tiger? Date: Fri, 3 Jun 2005 10:07:03 +0200 Organization: none Lines: 26 Message-ID: <1gxkrij.u8l7igl0m4f8N%stk@snafu.de> References: <1gxe8gf.mskt5113plybmN%stk@snafu.de> X-Trace: news.uni-berlin.de 8IERcFer8XAd6LPi8eaazAiibvZeCabAzl4mrUdBprbx+v X-Orig-Path: stk Mail-Copies-To: never User-Agent: MacSOUP/2.7 (Mac OS X version 10.4.1)