From 02852c19807a874dbdf6531f04ed4242620030c1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 13 Jul 2016 16:39:21 -0400 Subject: fix CUE/TOC file creation with non ISO-8859-1 chars in source text (substitute underscores) --- libs/ardour/export_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/export_handler.cc') diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index 8034a09079..2dddd52401 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -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)); } -- cgit v1.2.3