[Zope] language environment changes after a while

Dieter Maurer dieter@handshake.de
Mon, 28 Oct 2002 21:27:02 +0100


Dirk Datzert writes:
 > I grepped for 'grep -ri locale *' and found:
 > ...
 > tructuredText.py:            locale.setlocale(locale.LC_ALL,"")
 > happydoc/HappyDoc-r2_0_1/happydoclib/docstring/StructuredText/ClassicStructuredT
 > ...
 > Can one of those be a problem ?
Do you use "HappyDoc" from inside your Zope?

Then this can be a problem:

  "setlocale(...,'')" sets the default locale, which may be different
  from that you start Zope with.

  There is an environment variable (I think, it is "LC_ALL"; but check
  the documentation) to set the default "locale".


Dieter