mkvextract must write an UTF-8 BOM if it outputs text in UTF-8.

This commit is contained in:
Moritz Bunkus 2004-08-01 16:11:12 +00:00
parent f82e6f3c88
commit 038dc2ef68
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2004-08-01 Moritz Bunkus <moritz@bunkus.org>
* mkvextract: bug fix: The CUE extraction wrote UTF-8 characters
but no UTF-8 BOM (byte order marker) at the beginning.
* mkvmerge: bug fix: Handle TTA files with ID3 tags correctly ( =
skip the ID3 tags).

View File

@ -284,6 +284,8 @@ write_cuesheet(const char *file_name,
if (chapters.ListSize() == 0)
return;
out.write_bom("UTF-8");
print_if_global("CATALOG", "CATALOG %s\n");
print_if_global("ARTIST", "PERFORMER \"%s\"\n");
print_if_global("TITLE", "TITLE \"%s\"\n");