summaryrefslogtreecommitdiffstats
path: root/ftp/gftp/files/patch-src::text::gftp-text.c
blob: 0e1bf3bd9fa700937c931b821ebad6f6e039b06e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- src/text/gftp-text.c.orig   Sat Feb  5 16:38:03 2005
+++ src/text/gftp-text.c    Sat Feb  5 16:39:26 2005
@@ -185,6 +185,7 @@
   else
     infd = stdin;
 
+#if GLIB_MAJOR_VERSION > 1
   locale_question = g_locale_from_utf8 (question, -1, NULL, NULL, NULL);
   if (locale_question != NULL)
     {
@@ -193,6 +194,7 @@
       g_free (locale_question);
     }
   else
+#endif
     printf ("%s%s%s ", GFTPUI_COMMON_COLOR_BLUE, question,
             GFTPUI_COMMON_COLOR_DEFAULT);