lib/gettext/tools.rb
# Currently, GNU msgmerge doesn't accept BOM. 
# This mesthod remove the UTF-8 BOM from the po-file.
Currently, GNU msgmerge doesn't accept BOM.
This mesthod remove the UTF-8 BOM from the po-file.
Currently GNU msgmerge doesn ' t accept BOM . This mesthod remove the UTF - 8 BOM from the po - file .
def remove_bom(path)  
    bom = IO.read(path, 3)
    if bom == BOM_UTF8
      data = IO.read(path)[3..-1]
      File.open(path, "w") {|f| f.write(data)}
    end
  end
def remove_bom ( path ) bom = IO . read ( path , 3 ) if bom == BOM_UTF8 data = IO . read ( path ) [ 3 .. - 1 ] File . open ( path , "w" ) { | f | f . write ( data ) } end end
Currently, GNU msgmerge doesn't accept BOM.
Currently GNU msgmerge doesn ' t accept BOM .
#:nodoc:
path
<not_specific>