[Zope] language environment changes after a while
Dirk Datzert
dirk.datzert@tks-rasselstein.thyssenkrupp.com
Sun, 27 Oct 2002 19:45:23 +0100
Hi Dieter,
I grepped for 'grep -ri locale *' and found:
happydoc/HappyDoc-r2_0_1/build/lib/happydoclib/docstring/StructuredText/ClassicS
tructuredText.py: import locale
happydoc/HappyDoc-r2_0_1/build/lib/happydoclib/docstring/StructuredText/ClassicS
tructuredText.py: locale.setlocale(locale.LC_ALL,"")
happydoc/HappyDoc-r2_0_1/happydoclib/docstring/StructuredText/ClassicStructuredT
ext.py: import locale
happydoc/HappyDoc-r2_0_1/happydoclib/docstring/StructuredText/ClassicStructuredT
ext.py: locale.setlocale(locale.LC_ALL,"")
Can one of those be a problem ?
Normally I start z2.py with argument -L 'german' . Is this maybe wrong ?
Regards,
Dirk
Dieter Maurer schrieb:
>
> Dirk Datzert writes:
> > I have detected a problem I can't find rational:
> >
> > I integrated PublisherProfile product from cvs.zope.org and after zope
> > starts it writes the time values with formating value %.3f as dotted
> > values of 0.789 . After a while the format changes to comma values 0,789
> > .
> >
> > Where should I search for a bug ? I don't thing that it is a problem of
> > PublisherProfile product.
> Either one of your Python modules or one of the external C implementations
> sets the locale. This is a very bad idea, as the locale setting is global...
>
> Dieter