This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ideasman42
Recipients ideasman42
Date 2010-12-02.11:16:39
SpamBayes Score 2.1597664e-09
Marked as misclassified No
Message-id <1291288601.2.0.284782000328.issue10603@psf.upfronthosting.co.za>
In-reply-to
Content
# create this path.
# it could be made by any application but including this line
# so encoding is not confused.
# c:\äöü
__import__("os").mkdir(b'c:\\\xe4\xf6\xfc')

# Now create a new script and save in the newly created dir
c:\äöü\test.py

# In c:\äöü\test.py add the following line
__import__("os").listdir(os.path.dirname(__file__))


# Now run the script from the command line using its absolute path.
c:\Python31\python.exe c:\äöü\test.py

--- This gives an error.
Traceback (most recent call last):
  File "m:\\xc3\xa4\xc3\xb6\xc3¼\test.py", line 2, in <module>
WindowsError: [Error 3] The system cannot find the path specified: 'm:\\\xc3\xa4\xc3\xb6\xc3¼\\*.*'


This is a bug because a script should be able to inspect the path where it is located.
History
Date User Action Args
2010-12-02 11:16:41ideasman42setrecipients: + ideasman42
2010-12-02 11:16:41ideasman42setmessageid: <1291288601.2.0.284782000328.issue10603@psf.upfronthosting.co.za>
2010-12-02 11:16:39ideasman42linkissue10603 messages
2010-12-02 11:16:39ideasman42create