We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67d259c commit 2480ef9Copy full SHA for 2480ef9
tool/pure_parser.rb
@@ -1,11 +1,14 @@
1
#!/usr/bin/ruby -pi.bak
2
BEGIN {
3
+ # pathological setting
4
+ ENV['LANG'] = ENV['LC_MESSAGES'] = ENV['LC_ALL'] = 'C'
5
+
6
require_relative 'lib/colorize'
7
8
colorize = Colorize.new
9
file = ARGV.shift
10
begin
- version = IO.popen(ARGV+%w[--version], &:read)
11
+ version = IO.popen(ARGV+%w[--version], "rb", &:read)
12
rescue Errno::ENOENT
13
abort "Failed to run `#{colorize.fail ARGV.join(' ')}'; You may have to install it."
14
end
0 commit comments