From 7a8ddb5dc04cbf1a38456c3484765f515c9f4e13 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Mon, 5 Dec 2011 18:00:59 +0300 Subject: [PATCH] IDEA-75269 Fix encoding in diff for Mercurial. [Reviewed by irengrig, max] --- plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCatCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCatCommand.java b/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCatCommand.java index 6b02f52a3d1c..64b0e52c56f8 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCatCommand.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/command/HgCatCommand.java @@ -39,6 +39,7 @@ public class HgCatCommand { final HgCommandExecutor executor = new HgCommandExecutor(myProject); executor.setOptions(Collections.emptyList()); executor.setSilent(true); + executor.setCharset(charset); final HgCommandResult result = executor.executeInCurrentThread(hgFile.getRepo(), "cat", arguments); if (result == null) { // in case of error