mkvtoolnix/tests/test-406ogm_chapters_ansi_encoded.rb
Moritz Bunkus 71ab9d599d mkvmerge: OGM reader: fix handling chapters encoded in non-system charset
OGM comments might be written in a charset other than UTF-8. During
identification we simply want to know how many chapter entries there
are. As mmg's users have no way to specify the chapter charset when
adding a file such charset issues may cause mkvmerge to abort or not
to show any chapters at all (if "parse_chapters()" fails). So just
remove all chars > 127.

Fixes #919.
2013-10-02 23:33:32 +02:00

10 lines
260 B
Ruby
Executable File

#!/usr/bin/ruby -w
file = "data/ogg/with_chapters_ansi_encoded.ogm"
describe "mkvmerge / identify and merge OGMs with comments encoded in ANSI"
test_identify file
test_merge file, :exit_code => :warning
test_merge file, :args => "--chapter-charset MS-ANSI"