Article View: borland.public.cppbuilder.internationalization
Article #897Re: How do I read non US values?
From: Edward Diener
Date: Wed, 19 Dec 2001 22:51
Date: Wed, 19 Dec 2001 22:51
11 lines
1349 bytes
1349 bytes
Look at the Windows API function GetLocaleInfo as a starting point, then GetNumberFormat and others. Dennis Vogel wrote: > My program works fine in the US but other countries use a comma instead of a > period as a hundreds separator. So .45 becomes ,45 > > I don't get the proper value with atof. > > What do I use to always get a value?
Technical Details
Message-ID:
<3C211A06.7020001@tropicsoft.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-out.visi.com!hermes.visi.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3c1bd1a6_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10297d,2ab5ab8c16bc9c46 X-Google-Attributes: gid10297d,public X-Google-ArrivalTime: 2001-12-19 15:04:26 PST Message-ID: <3C211A06.7020001@tropicsoft.com> Date: Wed, 19 Dec 2001 17:51:50 -0500 From: Edward Diener <eddielee@tropicsoft.com> Reply-To: eddielee@tropicsoft.com User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internationalization Subject: Re: How do I read non US values? References: <3c1bd1a6_1@dnews> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 207.69.10.230 X-Trace: dnews 1008802280 207.69.10.230 (19 Dec 2001 14:51:20 -0800) Lines: 12 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-out.visi.com!hermes.visi.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews