From 185bababe7f43f6ef8cd4fadbf986cf0ab8b68c7 Mon Sep 17 00:00:00 2001 From: Yuichi Uemura Date: Fri, 5 Aug 2016 18:58:51 +0900 Subject: [PATCH] Fix miss encode trouble --- lib/git/lib.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 777e42ea..2b1b6a59 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -859,10 +859,10 @@ def meets_required_version? def command_lines(cmd, opts = [], chdir = true, redirect = '') cmd_op = command(cmd, opts, chdir) - op = cmd_op.encode("UTF-8", "binary", { - :invalid => :replace, - :undef => :replace - }) + op = cmd_op.encode("UTF-8", { + :invalid => :replace, + :undef => :replace + }) op.split("\n") end