[issue2158] confusing exception when opening a filename with nonprintable characters

2008-05-03 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: backported r61468 to release25-maint in r62659. -- assignee: -> gregory.p.smith resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> ___

[issue2158] confusing exception when opening a filename with nonprintable characters

2008-05-02 Thread Ronald Oussoren
Ronald Oussoren <[EMAIL PROTECTED]> added the comment: AFAIK this is fixed in the trunk, you'll get a message that the filename or mode is incorrect (but not which one). That's the best open() can do because the underlying C API doesn't give enough information to decide which argument is unacc

[issue2158] confusing exception when opening a filename with nonprintable characters

2008-02-21 Thread Ned Deily
Ned Deily added the comment: I cannot reproduce the problem on Intel OSX 10.5.2 (Leopard) with either the built-in 2.5.1 or with the MacPython 2.5.1: $ /usr/bin/python Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credi

[issue2158] confusing exception when opening a filename with nonprintable characters

2008-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: The problem appears to be that Mac's strerror doesn't return a good error message. We could try to detect this sort of thing, but I'm not sure how. __ Tracker <[EMAIL PROTECTED]> _

[issue2158] confusing exception when opening a filename with nonprintable characters

2008-02-21 Thread Geoffrey Irving
Geoffrey Irving added the comment: It works fine for me on Linux as well, and on FreeBSD. I expect it's a mac specific bug. Geoffrey On Thu, Feb 21, 2008 at 12:00 PM, Christian Heimes <[EMAIL PROTECTED]> wrote: > Christian Heimes added the comment: > > I've tried the example with Python 2.6 +

[issue2158] confusing exception when opening a filename with nonprintable characters

2008-02-21 Thread Benjamin Peterson
Changes by Benjamin Peterson: -- versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue2158] confusing exception when opening a filename with nonprintable characters

2008-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: I can confirm on the trunk with Mac OSX 10.4. -- nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2158] confusing exception when opening a filename with nonprintable characters

2008-02-21 Thread Christian Heimes
Christian Heimes added the comment: I've tried the example with Python 2.6 + 3.0 on Linux and Windows. No errors here. -- nosy: +tiran priority: -> normal __ Tracker <[EMAIL PROTECTED]> _

[issue2158] confusing exception when opening a filename with nonprintable characters

2008-02-21 Thread Geoffrey Irving
New submission from Geoffrey Irving: On Mac OS X with python 2.5.1, I get >>> open(chr(212),'w') Traceback (most recent call last): File "", line 1, in IOError: invalid mode: w The error should be more like "filename contains nonprintable characters." Thanks, Geoffrey -- components