ruby-changes:62168
From: Nobuyoshi <ko1@a...>
Date: Fri, 10 Jul 2020 08:52:39 +0900 (JST)
Subject: [ruby-changes:62168] 06ab2791c3 (ruby_2_7): pure_parser.rb: get rid of an error at localed messages
https://git.ruby-lang.org/ruby.git/commit/?id=06ab2791c3 From 06ab2791c38c431e08bc8d9381c9a1ca727297c4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 20 May 2020 10:52:32 +0900 Subject: pure_parser.rb: get rid of an error at localed messages diff --git a/tool/pure_parser.rb b/tool/pure_parser.rb index 59e8fb7..dfd66ff 100755 --- a/tool/pure_parser.rb +++ b/tool/pure_parser.rb @@ -1,11 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/tool/pure_parser.rb#L1 #!/usr/bin/ruby -pi BEGIN { + # pathological setting + ENV['LANG'] = ENV['LC_MESSAGES'] = ENV['LC_ALL'] = 'C' + require_relative 'lib/colorize' colorize = Colorize.new file = ARGV.shift begin - version = IO.popen(ARGV+%w[--version], &:read) + version = IO.popen(ARGV+%w[--version], "rb", &:read) rescue Errno::ENOENT abort "Failed to run `#{colorize.fail ARGV.join(' ')}'; You may have to install it." end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/