# HG changeset patch # User Florent Cayré # Date 1329133521 -3600 # Node ID baf8c16cae9528496cb078225ff52268a24c81da # Parent e35d4d4f7eb3d2ca7b064a964c669d3ecf9af559 [i18n] fix pb with non-ascii chars in cwd. closes #2149063 diff -r e35d4d4f7eb3 -r baf8c16cae95 i18n.py --- a/i18n.py Mon Feb 13 12:41:04 2012 +0100 +++ b/i18n.py Mon Feb 13 12:45:21 2012 +0100 @@ -60,7 +60,9 @@ status != 0 """ from subprocess import call - print cmd.replace(os.getcwd() + os.sep, '') + # use getcwdu as cmd may be unicode and cwd may contains non-ascii + # characters + print cmd.replace(os.getcwdu() + os.sep, '') status = call(cmd, shell=True) if status != 0: raise Exception('status = %s' % status)