13
0

Escape cue cd-text like toc

Really do what 02852c1980 says, which only fixed toc files.
This commit is contained in:
Robin Gareus 2024-01-15 16:25:25 +01:00
parent 0fd1edd78e
commit 37e7fe9963
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1019,7 +1019,7 @@ ExportHandler::cue_escape_cdtext (const std::string& txt)
std::string out;
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) {
throw Glib::ConvertError (err.code(), string_compose (_("Cannot convert %1 to Latin-1 text"), txt));
}