From a23e13772330b925b44021d97d6a8d8e34a3c4a2 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Mon, 3 Oct 2022 21:59:30 +0200 Subject: [PATCH] When exporting with .cue file, use latin1 for filename as well Before, the .cue file could end up with a mix of latin1 and utf-8 encodings. Utf-8 works better for many things, but that doesn't matter when the .cue file has to be in latin-1. --- 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 eae59eb468..40a9e29da9 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -715,7 +715,7 @@ ExportHandler::write_cue_header (CDMarkerStatus & status) We try to use these file types whenever appropriate and default to our own names otherwise. */ - status.out << "FILE \"" << Glib::path_get_basename(status.filename) << "\" "; + status.out << "FILE " << cue_escape_cdtext (Glib::path_get_basename(status.filename)) << " "; if (!status.format->format_name().compare ("WAV") || !status.format->format_name().compare ("BWF")) { status.out << "WAVE"; } else if (status.format->format_id() == ExportFormatBase::F_RAW &&