fix CUE/TOC file creation with non ISO-8859-1 chars in source text (substitute unders...
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 13 Jul 2016 20:39:21 +0000 (16:39 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 13 Jul 2016 20:39:26 +0000 (16:39 -0400)
libs/ardour/export_handler.cc

index 8034a0907954baa0be1ca087a8cb030b09a23440..2dddd5240123e0629def5996f95fea5b8d7e5bad 100644 (file)
@@ -839,7 +839,7 @@ ExportHandler::toc_escape_cdtext (const std::string& txt)
        char buf[5];
 
        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));
        }