Page MenuHomePhorge

D25691.1734643532.diff
No OneTemporary

D25691.1734643532.diff

diff --git a/src/repository/api/ArcanistSubversionAPI.php b/src/repository/api/ArcanistSubversionAPI.php
--- a/src/repository/api/ArcanistSubversionAPI.php
+++ b/src/repository/api/ArcanistSubversionAPI.php
@@ -40,6 +40,16 @@
$argv[0] = 'svn '.$argv[0];
$future = newv('ExecFuture', $argv);
+
+ // For historical reasons we run Subversion commands keeping env.
+ // But, let's keep English, to have a reliable parser.
+ // https://github.com/apache/subversion/blob/trunk/notes/l10n-problems
+ // https://svnbook.red-bean.com/en/1.7/svn.advanced.l10n.html
+ // https://superuser.com/a/1779369/390314
+ $future->updateEnv('LC_ALL', null);
+ $future->updateEnv('LANGUAGE', 'C');
+ $future->updateEnv('LC_MESSAGES', 'C');
+
$future->setCWD($this->getPath());
return $future;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 21:25 (17 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015652
Default Alt Text
D25691.1734643532.diff (823 B)

Event Timeline