mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
transcode-tblgen.rb: binary mode
* tool/transcode-tblgen.rb (citrus_decode_mapsrc): read in binary mode to deal with non-ascii characters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cb65717b45
commit
3a86385ca3
1 changed files with 1 additions and 1 deletions
|
@ -725,7 +725,7 @@ def citrus_decode_mapsrc(ces, csid, mapsrcs)
|
|||
path << ".src"
|
||||
path[path.rindex('/')] = '%'
|
||||
STDERR.puts 'load mapsrc %s' % path if VERBOSE_MODE
|
||||
open(path) do |f|
|
||||
open(path, 'rb') do |f|
|
||||
f.each_line do |l|
|
||||
break if /^BEGIN_MAP/ =~ l
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue