Page MenuHomePhabricator

D21676.diff
No OneTemporary

D21676.diff

diff --git a/src/repository/api/ArcanistMercurialAPI.php b/src/repository/api/ArcanistMercurialAPI.php
--- a/src/repository/api/ArcanistMercurialAPI.php
+++ b/src/repository/api/ArcanistMercurialAPI.php
@@ -15,7 +15,10 @@
protected function buildLocalFuture(array $argv) {
$env = $this->getMercurialEnvironmentVariables();
- $argv[0] = 'hg '.$argv[0];
+ // Mercurial deceptively indicates that the default encoding is UTF-8
+ // however the actual default appears to be "something else", at least on
+ // Windows systems. Force all mercurial commands to use UTF-8 encoding.
+ $argv[0] = 'hg --encoding utf-8 '.$argv[0];
$future = newv('ExecFuture', $argv)
->setEnv($env)

File Metadata

Mime Type
text/plain
Expires
Sun, May 12, 4:12 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6288627
Default Alt Text
D21676.diff (711 B)

Event Timeline