ruby-changes:61300
From: Nobuyoshi <ko1@a...>
Date: Wed, 20 May 2020 10:53:48 +0900 (JST)
Subject: [ruby-changes:61300] 2480ef904c (master): pure_parser.rb: get rid of an error at localed messages
https://git.ruby-lang.org/ruby.git/commit/?id=2480ef904c From 2480ef904c66812cf366e5d9bc8a9c3c20bbf271 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 d07df68..21c87cc 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.bak 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/