From: Don A. <don...@co...> - 2005-09-27 04:05:01
|
I checked in what I believe to be a fix for this problem. Please test it. Don On Mon, 2005-09-26 at 18:59 -0700, Alex Roitman wrote: > Eero, >=20 > On Tue, 2005-09-27 at 00:53 +0300, Eero Tamminen wrote: > > I found the problem (I diffed your and my PS files): > > ----------------- > > gsave > > -0.0000 0.0000 0.0000 setrgbcolor > > +0,0000 0,0000 0,0000 setrgbcolor > > /Helvetica find-latin-font 14 scalefont setfont >=20 > Yes, Don did the same thing, so we're on the same page here. >=20 > > In Finnish locale the integers and decimals are separated with a comma > > instead of a full-stop. >=20 > Yep. >=20 > > I hadn't know that LANG sets also LC_NUMERIC etc: >=20 > Depending on the locales version, you may need either > LANG or both LANG and LANGUAGE to completely set locale. >=20 > > According to "man 7 locale": > > LC_NUMERIC > > changes the information used by the printf() and > > scanf() family of functions, when they are advised > > to use the locale-settings. This information can > > also be read with the localeconv() function. > >=20 > > When outputting numbers to formats (programming languages) which are no= t > > locale aware, such as PostScript, locale specific number output functio= ns=20 > > should not be used, or their locale support should be disabled. >=20 > Yes. But Python should take care of that, and it does for me. > I have Python 2.3.5 (#2, Aug 30 2005, 15:50:26). What's your version? >=20 > This used to be a known problem with python, see this page: > http://www.python.org/peps/pep-0331.html >=20 > Quoting from the end: > The final patch [11] was integrated into Python CVS by Martin v. > L=C3=B6wis on 2004-06-08 >=20 > I bet that your version does not have that fix. But we may still > work around the problem. Don was going to do this tonight. >=20 > Alex >=20 --=20 Don Allingham <don...@co...> |