diff gui/app/cfg-old.c @ 35926:eab9c3e8a565

Support mixed filename encodings. This also supports falsely stated filename encodings. Part 2 of 3: file selector path list. In order for the filenames to look readable, it's necessary to set G_FILENAME_ENCODING (for non-UTF8 or mixed encodings only).
author ib
date Tue, 19 Mar 2013 17:22:48 +0000
parents bd3e9d8df038
children 277882d42938
line wrap: on
line diff
--- a/gui/app/cfg-old.c	Tue Mar 19 17:18:59 2013 +0000
+++ b/gui/app/cfg-old.c	Tue Mar 19 17:22:48 2013 +0000
@@ -32,7 +32,7 @@
  */
 static const gchar *cfg_old_filename_from_utf8(const gchar *fname)
 {
-#ifdef CFG_OLD_PLAYLIST
+#if defined(CFG_OLD_PLAYLIST) || defined(CFG_OLD_FILESELECT)
     static gchar *name;
 
     if (g_utf8_validate(fname, -1, NULL)) {
@@ -45,4 +45,5 @@
     return fname;
 }
 
+#undef CFG_OLD_FILESELECT
 #undef CFG_OLD_PLAYLIST