Changing filenames from Greeklish => Greek (subprocess complain)
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Sun Jun 9 08:36:51 EDT 2013
On Sun, 09 Jun 2013 19:16:06 +1000, Cameron Simpson wrote:
> If he's lucky the UnicodeEncodeError occurred while trying to print an
> error message,
That's not what happens at the interactive console:
py> assert os.path.exists('Ж1')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AssertionError
> printing a greek Unicode string in the error with ASCII
> as the output encoding (default when not a tty IIRC).
An interesting thought. How would we test that?
--
Steven
More information about the Python-list
mailing list