Subject: Re: setlocale portability
From: Joaquin Cuenca Abela (cuenca@celium.net)
Date: Mon Apr 02 2001 - 08:01:47 CDT
On 02 Apr 2001 12:43:38 +0000, Hubert Figuiere wrote:
> There is but 1291 this is IMHO really critical as it involves data
> corruption.
I agree
>
> http://bugzilla.abisource.com/show_bug.cgi?id=1291
>
> The problem is that sprintf() honour locale on Linux. So when writting a
> float using %f use decimal separator set for locale, raising
> incompatibilities of file format.
>
> My question is how portable is setlocale() to revert locale back to "C" when
> writting the file ? Because setlocale() can be the solution to the problem.
I don't know, but I remember that the same problem was raised once upon
a time when we were writting colors in the .ps file (I think that a
portugues dude solved the problem).
Please, in the future be careful with these issues. It's very easy to
screw all the non-english people with something like that (fortunately
enough, the bug only shows up when saving a document that has a non
default page size, but unfortunately most european users will use A4,
and thus they will be screwed!
Cheers,
P.S.: What are the feeling of the others about a 0.7.14-3 ?
-- Joaquín Cuenca Abela cuenca@celium.net
This archive was generated by hypermail 2b25 : Mon Apr 02 2001 - 08:02:28 CDT