
On Mon, Sep 01, 2003 at 02:30:23PM -0400, Tim Peters wrote:
There's no way of using C's locale gimmicks that's threadsafe, short of all callers agreeing to follow a beyond-standard-C exclusion protocol -- which is the same as saying "no way" in reality. So that's part of one problem no patch of this ilk *can* solve. It's not that the patch doesn't try hard enough, it's that this approach is inherently inadequate to solve all of this particular problem.
It is just that the patch does not "feel" right, given that there must be "native" locale-inaware parsing of floating point constants somewhere on each platform (atleast on those that support C++98).
I haven't found one on Windows (doesn't mean it doesn't exist, does mean it's apparently well hidden if it does exist).
Just to follow up, today I found a thread on opengroup.org that discusses locale-safe APIs in the C library. They don't suggest anything very positive in the way of standardization :-/ http://www.opengroup.org/austin/mailarchives/austin-group-l/msg00763.html Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL