From 7a7d2794cf33b66fde817e1047fea88b38b8f9aa Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Mon, 27 Jul 2015 17:27:43 +0200 Subject: [PATCH] Set LC_MESSAGES to C This is required to ensure that we get the expected standard English output from the svn command line client, not some localized variant. --- svn2svn/shell.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/svn2svn/shell.py b/svn2svn/shell.py index d4fad19..0bd1949 100644 --- a/svn2svn/shell.py +++ b/svn2svn/shell.py @@ -72,6 +72,10 @@ def rmtree(path): return shutil.rmtree(path, False, _rmtree_error_handler) +# Make sure we do not get localized output from the Suversion +# command line client. +os.environ['LC_MESSAGES'] = 'C' + locale_encoding = locale.getpreferredencoding() def get_encoding(): -- 2.45.2