aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcs_git.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcs_git.rb b/vcs_git.rb
index 3c3ec0b..13b0b3a 100644
--- a/vcs_git.rb
+++ b/vcs_git.rb
@@ -1,3 +1,4 @@
+# encoding: utf-8
############################################################################
# Copyright 2009,2010 Benjamin Kellermann #
# #
@@ -22,7 +23,7 @@ require_relative "log"
require "open3"
def runcmd *args
- Open3.popen3(*args) {|i,o,e,t| o.read }
+ Open3.popen3(*args) {|i,o,e,t| o.read.force_encoding('utf-8') }
end
class VCS