diff options
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/enc-unicode.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/enc-unicode.rb b/tool/enc-unicode.rb index e7b979a639..83bbe352e1 100755 --- a/tool/enc-unicode.rb +++ b/tool/enc-unicode.rb @@ -281,7 +281,7 @@ def data_foreach(name, &block) fn = get_file(name) warn "Reading #{name}" pat = /^# #{name.sub(/\./, '-([\\d.]+)\\.')}/ - File.open(fn) do |f| + File.open(fn, 'rb') do |f| line = f.gets unless pat =~ line raise ArgumentError, "#{name}: no Unicode version" |