From 4983829ad85b9278f41876c2f8a7c15dde84f94b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 8 Mar 2009 14:03:01 +0100 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ src/info/mkvinfo.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bec4ca121..b64e8006a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-03-08 Moritz Bunkus + + * 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 * Released v2.5.3. diff --git a/src/info/mkvinfo.cpp b/src/info/mkvinfo.cpp index 2355121a7..d2790d14c 100644 --- a/src/info/mkvinfo.cpp +++ b/src/info/mkvinfo.cpp @@ -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(e)).c_str())); + show_element(e, level, boost::format("%1%: %2%") % elt_name % UTF2STR(UTFstring(*static_cast(e)).c_str())); break; case EBMLT_TIME: