From 37e7fe99632aa03c387692e147070394b9828870 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 15 Jan 2024 16:25:25 +0100 Subject: [PATCH] Escape cue cd-text like toc Really do what 02852c19807 says, which only fixed toc files. --- libs/ardour/export_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index c07a765fe0..edc458f8dd 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -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)); }