Re: Faulty encoding settings

2006-10-17 Thread Neil Cerutti
On 2006-10-17, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, Neil Cerutti wrote: >> I'm writing an application that needs all internal character data >> to be stored in iso-8859-1. It also must allow input and output >> using stdin and stdout. > > Give the user the a

Re: Faulty encoding settings

2006-10-17 Thread Martin v. Löwis
Neil Cerutti schrieb: > The Cygwin binary I have (2.4.3) reports sys.stdin.encoding as > 'US-ASCII', which is quite wrong. A Cygwin terminal uses, as far > as I can tell, iso-8859-1. This renders the above construction > useless if the user enters any character codes above 128. > Using raw_input in

Re: Faulty encoding settings

2006-10-17 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Neil Cerutti wrote: > I'm writing an application that needs all internal character data > to be stored in iso-8859-1. It also must allow input and output > using stdin and stdout. > > This works just fine with the Windows binary of Python. > sys.stdin.encoding is correctly