13
0

fix CUE/TOC file creation with non ISO-8859-1 chars in source text (substitute underscores)

This commit is contained in:
Paul Davis 2016-07-13 16:39:21 -04:00
parent dc43189c7e
commit 02852c1980

View File

@ -839,7 +839,7 @@ ExportHandler::toc_escape_cdtext (const std::string& txt)
char buf[5]; char buf[5];
try { try {
latin1_txt = Glib::convert (txt, "ISO-8859-1", "UTF-8"); latin1_txt = Glib::convert_with_fallback (txt, "ISO-8859-1", "UTF-8", "_");
} catch (Glib::ConvertError& err) { } catch (Glib::ConvertError& err) {
throw Glib::ConvertError (err.code(), string_compose (_("Cannot convert %1 to Latin-1 text"), txt)); throw Glib::ConvertError (err.code(), string_compose (_("Cannot convert %1 to Latin-1 text"), txt));
} }