More filename madness on XP

This commit is contained in:
Marcello Mamino 2017-06-09 23:55:53 +02:00
parent 244cf19065
commit b89e761d0c

View file

@ -1029,7 +1029,11 @@ void handle_open(GApplication* app, GFile **files, int cnt, char *hint, void *p)
for(i = 0; i < cnt; i++) {
char *path = g_file_get_path(files[i]);
#ifdef _WIN32
#ifdef WIN_XP
load_from_file(path, "ISO-8859-1", w);
#else
load_from_file(path, "UTF-8", w);
#endif
#else
load_from_file(path, w);
#endif