##// END OF EJS Templates
subrepo: setting LC_MESSAGES only works if LC_ALL is empty or unset...
Thomas Arendsen Hein -
r17705:6929b9c7 stable
parent child Browse files
Show More
@@ -655,6 +655,10 class svnsubrepo(abstractsubrepo):
655 cmd.append(path)
655 cmd.append(path)
656 env = dict(os.environ)
656 env = dict(os.environ)
657 # Avoid localized output, preserve current locale for everything else.
657 # Avoid localized output, preserve current locale for everything else.
658 lc_all = env.get('LC_ALL')
659 if lc_all:
660 env['LANG'] = lc_all
661 del env['LC_ALL']
658 env['LC_MESSAGES'] = 'C'
662 env['LC_MESSAGES'] = 'C'
659 p = subprocess.Popen(cmd, bufsize=-1, close_fds=util.closefds,
663 p = subprocess.Popen(cmd, bufsize=-1, close_fds=util.closefds,
660 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
664 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
General Comments 0
You need to be logged in to leave comments. Login now