$OpenBSD: patch-src_text_gftp-text_c,v 1.2 2007/11/06 12:14:18 ajacoutot Exp $ --- src/text/gftp-text.c.orig Tue Jan 25 02:11:00 2005 +++ src/text/gftp-text.c Tue Nov 6 13:05:08 2007 @@ -185,7 +185,12 @@ gftp_text_ask_question (const char *question, int echo else infd = stdin; +#if GLIB_MAJOR_VERSION > 1 locale_question = g_locale_from_utf8 (question, -1, NULL, NULL, NULL); +#else + locale_question = NULL; +#endif + if (locale_question != NULL) { printf ("%s%s%s ", GFTPUI_COMMON_COLOR_BLUE, locale_question,