[Python-Dev] repr vs. str and locales again

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Fri, 19 May 2000 18:46:39 +0200


Barry Warsaw wrote:
> Another decidedly ignorant Anglophone here, but one problem that I see
> with localizing stuff is that locale is app- (or at least thread-)
> global, isn't it?  That would suck for applications like Mailman which
> are (going to be) multilingual in the sense that a single instance of
> the application will serve up documents in many languages, as opposed
> to serving up documents in just one of a choice of languages.
> 
> If it seems I don't know what I'm talking about, you're probably
> right.  I just wanted to point out that there are applications have to
> deal with many languages at the same time.

Applications may also have to deal with output devices (i.e. GUI
toolkits, printers, communication links) that don't necessarily have
the same restrictions as the "default console".

better do it the right way: deal with encodings at the boundaries,
not inside the application.

</F>