From: Humbel O. <Otm...@bi...> - 2001-08-30 13:53:24
|
Hello, Because I have to support an 'old' application using JPython 1.0.3, I'd like to ask if someone knows how the %f formatting behaviour in Jython was fixed. Consider the following example: [infra|pwe] > jython Jython 2.0 on java1.3.0 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> print "hello float %f" % "0.01" hello float 0.010000 >>> This result is always the same (IMHO correct), independent of the Windows 2000 Country settings. However, in JPython 1.0.3, after changing the country in the Windows 2000 Country Options, I get (IMHO a wrong result): [infra] > jpython JPython 1.0.3 on java1.3.0 Copyright 1997-1998 Corporation for National Research Initiatives >>> print "hello float %f" % "0.01" hello float 0,010000. >>>=20 I have the old JPython sources and would try to patch this myself, if someone could tell me where to look in the cvs tree (and if it is not too complicated :-). Thanks very much, and best wishes. Oti. |