OSDN Git Service

Fixed an encoding issue for mk_rate
[shogi-server/shogi-server.git] / mk_rate
diff --git a/mk_rate b/mk_rate
index b540963..6090225 100755 (executable)
--- a/mk_rate
+++ b/mk_rate
@@ -679,7 +679,7 @@ def parse(line)
   end
 
   if state == "abnormal"
-    csa = CsaFileReader.new file
+    csa = CsaFileReader.new(file, "EUC-JP")
     if $options["abnormal-threshold"] == 0 || csa.ply <= $options["abnormal-threshold"]
       return
     end