Message97740
When the current working directory is not decodable, the os.getcwd() function should raise an error.
>>> sys.getfilesystemencoding()
'utf-8'
>>> cwd=b'/tmp/\xe7'
>>> os.mkdir(cwd); os.chdir(cwd)
>>> os.getcwdb()
b'/tmp/\xe7'
>>> os.getcwd() # Should raise UnicodeDecodeError
'/tmp/\udce7'
Python 2 raises the error. |
|
Date |
User |
Action |
Args |
2010-01-13 22:35:10 | flox | set | recipients:
+ flox |
2010-01-13 22:35:09 | flox | set | messageid: <1263422109.69.0.664719767717.issue7697@psf.upfronthosting.co.za> |
2010-01-13 22:35:07 | flox | link | issue7697 messages |
2010-01-13 22:35:07 | flox | create | |
|