Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14076848
D21676.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
711 B
Referenced Files
None
Subscribers
None
D21676.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 7:56 PM (19 h, 11 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6771459
Default Alt Text
D21676.diff (711 B)
Attached To
Mode
D21676: Force all mercurial commands to use UTF-8 encoding
Attached
Detach File
Event Timeline
Log In to Comment