summaryrefslogtreecommitdiff
blob: 137c14d9c32cb977ed6f76bc8a53dd2ad39adb32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- xtools.c.org	2003-11-06 11:19:10.000000000 +0100
+++ xtools.c	2003-11-06 11:27:59.000000000 +0100
@@ -3662,9 +3662,13 @@
 	if (c_locale_is_utf8)
 		return str;
 
-	/* should be logical to use g_filename_from_utf8() here, but
-	   somehow this works not correctly on my testsystem */
+#ifdef BROKEN_GTK2_LOCALE
+	/* on my redhat 7.3 system it does only work that way, but
+	   on other systems the correct way is in the #else branch */ 
 	locstr = g_locale_from_utf8(str, strlen(str), &in, &out, NULL);
+#else
+	locstr = g_filename_from_utf8(str, strlen(str), &in, &out, NULL);
+#endif
 	if (locstr) {
 		strncpy(str, locstr, MAXLINE);
 	}