[TIP] Testing locale-dependent behaviour
alexandre.fayolle at logilab.fr
Tue Nov 25 05:58:45 PST 2008
Le Tuesday 25 November 2008 13:35:31 Michael Foord, vous avez écrit :
> Our functional test suite (Windows) changes the machine locale in a
> couple of places (and changes it back again of course) to regression
> tests problems we had with specific locales (usually Unicode errors I
> think). I don't have the details to hand, but could get them if it would
> be useful.
I think the OP's problem is that on a Unix-like machine, locales other
than "C" and "POSIX" are not mandatory, and may not be installed, so
setlocale(3) may return NULL if the requested locale is not available. He is
therefore looking for a way for an unpriviledged user to locally install a
locale which is required by some tests.
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informatique scientifique: http://www.logilab.fr/science
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 481 bytes
Desc: This is a digitally signed message part.
Url : http://lists.idyll.org/pipermail/testing-in-python/attachments/20081125/6f94acd2/attachment.pgp
More information about the testing-in-python