Re: parsing configs with non-C locale


Jeremy Selan <jeremy...@...>
 

I've opened up an issue on github so we dont forget about fixing this.
http://github.com/imageworks/OpenColorIO/issues/297

Anyone up for taking a stab at implementing the C-Locale fix?

-- Jeremy

On Mon, Nov 19, 2012 at 6:43 AM, Paul Miller <pa...@...> wrote:
On 11/19/2012 8:28 AM, Dithermaster wrote:

Ben's description aligns with my own experiences. We had a similar bug
reading/writing a text file with decimals, and fixed it in a similar way
(by saving/setting/restoring the locale setting).

Same here. But in that case, rather than fiddling with the locale (I wasn't
sure of any unintended consequences of doing that), I swapped in a custom
sscanf() that assumed decimal separators.

Still, I'll manually swap into the C locale when using OCIO in my imminent
update, but I agree it should probably be done inside OCIO at some point.
One less implementation detail to worry about.

Join ocio-dev@lists.aswf.io to automatically receive all group messages.