[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Desperate in need of help: Very very weird problem with sscanf
From:       Thiago Macieira <thiago () kde ! org>
Date:       2009-08-20 21:05:39
Message-ID: 200908202305.52619.thiago () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Matthew Woehlke wrote:
>Thiago Macieira wrote:
>> The problem is that the C library has no such locale-independent
>> function. Even strtod/strtof are dependent.
>
>How does, say, Inkscape read numbers from an svg, if that is the case?
>Do they have their own strtod-or-similar? (Presumably, however they
>handle it would be similar to how it should be fixed in this instance.)

Do what everyone else does: roll out their own locale-independent copy of 
strtod (see qstrtod in src/corelib/tools/qlocale.cpp, and 
JavaScriptCore/wtf/dtoa.cpp in WebKit).

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14     San Francisco, California: Nov 2 - 4
      http://qt.nokia.com/qtdevdays2009

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic