Re: Format strings

Josef Spillner <[email protected]> Mon, 5 Dec 2005 16:39:47 +0100
Newsgroups gmane.comp.python.internationalization
Message-ID <[email protected]>
El Mi=E9rcoles, 30. Noviembre 2005 23:52, Martin v. L=F6wis escribi=F3:
> a =3D u"Martin "
> b =3D u"v. "
> c =3D u"L=F6wis"
> mvl =3D a+b+c
>
> Now, the object mvl does not have any source code: so which encoding
> should be used to encode it? If you have an answer: how does that change
> if I have
>
> mvl =3D mod1.a+mod2.b+mod3.c

Ah, indeed.
Although, there is sys.getdefaultencoding() (=3D=3D "ascii"), controlling =

sys.setdefaultencoding() could be the application's task.

> No. It is so far from actually working that nobody bothers to fix it.
> However, if you have specific contributions which improve the state
> (i.e. have no behaviour change if -U is not specified, but fix a bug
>   when it is), those are appreciated.

OK, I'll look into it.

Josef