Re: sys.stdin.encoding

2006-12-11 Thread Martin v. Löwis
Leo Kislov schrieb: > Environmental variable TERMENCODING ? Heck, maybe this will catch on > and will be used by other languages, libraries, terminals, etc. It's > not really Python only problem. I also considered environment variables. This can likely be made available only in 2.6, though. Plus,

Re: sys.stdin.encoding

2006-12-11 Thread Leo Kislov
Martin v. Löwis wrote: > [EMAIL PROTECTED] schrieb: > > The following line in my code is failing because sys.stdin.encoding is > > Null. This has only started happening since I started working with > > Pydef in Eclipse SDK. Any ideas? > > > > uni=unicode(word,sys.stdin.encoding) > > That's a probl

Re: sys.stdin.encoding

2006-12-11 Thread Leo Kislov
[EMAIL PROTECTED] wrote: > Duncan Booth skrev: > > > [EMAIL PROTECTED] wrote: > > > > > The following line in my code is failing because sys.stdin.encoding is > > > Null. > > > > I'll guess you mean None rather than Null. > > > > > This has only started happening since I started working with > > >

Re: sys.stdin.encoding

2006-12-11 Thread aine_canby
Duncan Booth skrev: > [EMAIL PROTECTED] wrote: > > > The call to sys.getdefaultencoding() returns ascii. Since I can enter > > the characters åöä on the command line in Pydef/Eclipse doesn't that > > mean that the stdin is not ascii? What should I do? > > > I think that depends on what sort of sc

Re: sys.stdin.encoding

2006-12-11 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > The call to sys.getdefaultencoding() returns ascii. Since I can enter > the characters åöä on the command line in Pydef/Eclipse doesn't that > mean that the stdin is not ascii? What should I do? > I think that depends on what sort of script you are writing. If it is ju

Re: sys.stdin.encoding

2006-12-11 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: > The following line in my code is failing because sys.stdin.encoding is > Null. This has only started happening since I started working with > Pydef in Eclipse SDK. Any ideas? > > uni=unicode(word,sys.stdin.encoding) That's a problem with pydev, where the standard mach

Re: sys.stdin.encoding

2006-12-11 Thread aine_canby
Duncan Booth skrev: > [EMAIL PROTECTED] wrote: > > > The following line in my code is failing because sys.stdin.encoding is > > Null. > > I'll guess you mean None rather than Null. > > > This has only started happening since I started working with > > Pydef in Eclipse SDK. Any ideas? > > > > uni=u

Re: sys.stdin.encoding

2006-12-11 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > The following line in my code is failing because sys.stdin.encoding is > Null. I'll guess you mean None rather than Null. > This has only started happening since I started working with > Pydef in Eclipse SDK. Any ideas? > > uni=unicode(word,sys.stdin.encoding) > You