Recode EbmlUnicodeStrings to UTF-8 encoded C strings

mkvinfo expects strings to be encoded in UTF-8 when they're displayed. Fix for bug 353.
This commit is contained in:
Moritz Bunkus 2009-03-08 14:03:01 +01:00
parent c48917c747
commit 4983829ad8
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-03-08 Moritz Bunkus <moritz@bunkus.org>
* mkvinfo: bug fix: Chapter names and tag elements were recoded to
the wrong charset resulting in garbled output. Fix for bug 353.
2009-03-07 Moritz Bunkus <moritz@bunkus.org>
* Released v2.5.3.

View File

@ -1617,7 +1617,7 @@ handle_elements_rec(EbmlStream *es,
break;
case EBMLT_USTRING:
show_element(e, level, boost::format("%1%: %2%") % elt_name % UTFstring_to_cstr(UTFstring(*static_cast<EbmlUnicodeString *>(e)).c_str()));
show_element(e, level, boost::format("%1%: %2%") % elt_name % UTF2STR(UTFstring(*static_cast<EbmlUnicodeString *>(e)).c_str()));
break;
case EBMLT_TIME: