diff options
Diffstat (limited to 'src/subrip_reader.cc')
| -rw-r--r-- | src/subrip_reader.cc | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/subrip_reader.cc b/src/subrip_reader.cc index a82862c..f71843e 100644 --- a/src/subrip_reader.cc +++ b/src/subrip_reader.cc @@ -81,17 +81,7 @@ SubripReader::read (function<optional<string> ()> get_line) } trim_right_if (*line, boost::is_any_of ("\n\r")); - - if ( - line->length() >= 3 && - static_cast<unsigned char> (line.get()[0]) == 0xef && - static_cast<unsigned char> (line.get()[1]) == 0xbb && - static_cast<unsigned char> (line.get()[2]) == 0xbf - ) { - - /* Skip Unicode byte order mark */ - line = line->substr (3); - } + remove_unicode_bom (line); switch (state) { case COUNTER: |
