Jens Alfke  committed 855533f

Enable UTF-8 encoding when calling hg tool. Fixes bug #98.

  • Participants
  • Parent commits cc411a4

Comments (0)

Files changed (1)

File Source/HgOperation.m

 + (void) setupEnvironment {
     sEnvironment = [[[NSProcessInfo processInfo] environment] mutableCopy];
+    // Enable UTF-8 output. I don't like hardcoding the 'en_US' part, but it looks as though
+    // some language has to be specified there or the variable doesn't do anything.
+    [sEnvironment setObject: @"en_US.UTF-8" forKey: @"LANG"];
     // hg may need a custom PYTHONPATH. If so, the user's shell will set up that variable, so
     // to get it, fire up a shell and ask it: