13
0

Convert SMF track names to UTF-8

This commit is contained in:
Robin Gareus 2022-12-15 00:30:18 +01:00
parent eec36feb11
commit 95544a86a0
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -27,6 +27,7 @@
#include <stdint.h>
#include <glib/gstdio.h>
#include <glibmm/convert.h>
#include "pbd/whitespace.h"
@ -550,7 +551,7 @@ SMF::track_names(vector<string>& names) const
names.push_back (string());
} else {
if (trk->name) {
names.push_back (trk->name);
names.push_back (Glib::convert_with_fallback (trk->name, "UTF-8", "ISO-8859-1", "_"));
} else {
char buf[32];
sprintf(buf, "t%d", n+1);