[Gdal-dev] locale handling in GDAL

Ray Gardener rayg at daylongraphics.com
Mon Mar 6 21:00:33 EST 2006


Well, I'm happy to write an sprintf() equivalent. I did one a few years 
ago and it didn't take long at all.

Ray


Pete Nagy wrote:
> Eew, yuck, isn't there some way to avoid locale hacks like a sprintf
> workaround?  That kind of thing is really hard for someone new to the code
> to grok, will probably be a source of bugs as people forget to use the
> workaround, is ugly, etc.
> 
> There was some talk a while back about more multithreading improvements to
> gdal.  How about killing both birds, where the calls the program makes
> won't be sensitive to locale, and the threads that do the work will use
> c locale?  Don't know if threads can have their own locale or if there'd
> have to be interprocess stuff going on, but a multithreaded solution that
> can distribute work to processes on other machines might be the best
> anyway.  Just a thought.  Cheers,




More information about the Gdal-dev mailing list