Message123063
# 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. |
|
Date |
User |
Action |
Args |
2010-12-02 11:16:41 | ideasman42 | set | recipients:
+ ideasman42 |
2010-12-02 11:16:41 | ideasman42 | set | messageid: <1291288601.2.0.284782000328.issue10603@psf.upfronthosting.co.za> |
2010-12-02 11:16:39 | ideasman42 | link | issue10603 messages |
2010-12-02 11:16:39 | ideasman42 | create | |
|