Skip to content

Commit

Permalink
Set correct encodings to STDOUT for Ruby scripts
Browse files Browse the repository at this point in the history
cf. #7
  • Loading branch information
tats committed May 13, 2016
1 parent 8606481 commit 5cafbbe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions convert2skk/aozora2skk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
# ○

Encoding.default_external = "euc-jis-2004"
STDOUT.set_encoding("euc-jis-2004", "utf-8")
require 'optparse'

opt = OptionParser.new
Expand Down
1 change: 1 addition & 0 deletions convert2skk/chasen2skk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
##

Encoding.default_external = "euc-jis-2004"
STDOUT.set_encoding("euc-jis-2004", "utf-8")
require_relative 'skkdictools'
require 'optparse'

Expand Down
1 change: 1 addition & 0 deletions convert2skk/ipadic2skk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
##

Encoding.default_external = "euc-jis-2004"
STDOUT.set_encoding("euc-jis-2004", "utf-8")
require_relative 'skkdictools'
require 'optparse'

Expand Down
1 change: 1 addition & 0 deletions convert2skk/prime2skk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
##

Encoding.default_external = "euc-jis-2004"
STDOUT.set_encoding("euc-jis-2004", "utf-8")
require_relative 'skkdictools'
require 'optparse'
opt = OptionParser.new
Expand Down

0 comments on commit 5cafbbe

Please # to comment.