diff options
Diffstat (limited to 'enc/trans')
-rw-r--r-- | enc/trans/make_transdb.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/enc/trans/make_transdb.rb b/enc/trans/make_transdb.rb index aae24fdbf4..762dc107e3 100644 --- a/enc/trans/make_transdb.rb +++ b/enc/trans/make_transdb.rb @@ -31,12 +31,6 @@ Dir.open(transdir) {|d| d.grep(/.+\.[ch]\z/)}.sort_by {|e| end end result = converters.map {|k, v| %[rb_declare_transcoder("%s", "%s", "%s");\n] % v}.join -mode = IO::RDWR|IO::CREAT -mode |= IO::BINARY if defined?(IO::BINARY) -open(outhdr, mode) do |f| - unless f.read == result - f.rewind - f.truncate(0) - f.print result - end +open(outhdr, 'wb') do |f| + f.print result end |