Re: Unicode conversion in 'print'

2005-01-14 Thread "Martin v. LÃwis"
Ricardo Bugalho wrote: thanks for the information. But what I was really looking for was informaion on when and why Python started doing it (previously, it always used sys.getdefaultencoding())) and why it was done only for 'print' when stdout is a terminal instead of always. It does that since 2.

Re: Unicode conversion in 'print'

2005-01-14 Thread Serge Orlov
Ricardo Bugalho wrote: > Hi, > thanks for the information. But what I was really looking for was > informaion on when and why Python started doing it (previously, it > always used sys.getdefaultencoding())) I don't have access to any other version except 2.2 at the moment but I believe it happene

Re: Unicode conversion in 'print'

2005-01-13 Thread Ricardo Bugalho
Hi, thanks for the information. But what I was really looking for was informaion on when and why Python started doing it (previously, it always used sys.getdefaultencoding())) and why it was done only for 'print' when stdout is a terminal instead of always. On Thu, 13 Jan 2005 14:33:20 -0800, Se

Re: Unicode conversion in 'print'

2005-01-13 Thread Serge Orlov
Ricardo Bugalho wrote: > Hello, > I'm using Python 2.3.4 and I noticed that, when stdout is a terminal, > the 'print' statement converts Unicode strings into the encoding > defined by the locales instead of the one returned by > sys.getdefaultencoding(). Sure. It uses the encoding of you console.

Unicode conversion in 'print'

2005-01-13 Thread Ricardo Bugalho
Hello, I'm using Python 2.3.4 and I noticed that, when stdout is a terminal, the 'print' statement converts Unicode strings into the encoding defined by the locales instead of the one returned by sys.getdefaultencoding(). However, I can't find any references to it. Anyone knows where it's descrbed