ipython oops in cygwin #77

Closed
ipython opened this Issue May 10, 2010 · 3 comments

Projects

None yet

2 participants

@ipython
ipython commented May 10, 2010

Original Launchpad bug 372564: https://bugs.launchpad.net/ipython/+bug/372564
Reported by: kiyolee (kiyolee).

Get the latest development source of today with bzr.
In cygwin 1.7 (Windows Vista SP1 Business), sys.getfilesystemencoding() returns None and causes problem at line 993 of genutils.py: ipdir.decode(sys.getfilesystemencoding()).
Can't tell if this is actually a bug of cygwin or python.
However, it seems the code in genutils.py may probably be better not to assume sys.getfilesystemencoding() always returns sensible value.

@ipython
ipython commented May 10, 2010

[ LP comment 1 by: Fernando Perez, on 2010-04-25 03:10:49.493993+00:00 ]

More info from windows experts would really help us with this one, I'm not quite sure how to proceed...

@minrk
Member
minrk commented Mar 23, 2011

From the Python docs for sys.getdefaultencoding:

On Unix, the encoding is the user’s preference according to the result of nl_langinfo(CODESET), or None if the nl_langinfo(CODESET) failed.

The fix should be easy, as ack reveals the calls only in util.path.py.

@minrk
Member
minrk commented Mar 23, 2011

closing as duplicate of (more descriptive) #137

@minrk minrk closed this Mar 23, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment