openbsd-ports/net/gftp/patches/patch-src_text_gftp-text_c
alek 519784b391 Import gftp 2.0.18
gFTP is a free multithreaded file transfer client for *NIX based
machines. It has the following features:
- Distributed under the terms of the GNU Public License Agreement
- Written in C and has a text interface and a GTK+ 1.2/2.x interface
- Supports the FTP, FTPS (control connection only), HTTP, HTTPS, SSH and
  FSP protocols
- FTP and HTTP proxy server support
- Supports FXP file transfers (transferring files between 2 remote
  servers via FTP)
- Supports UNIX, EPLF, Novell, MacOS, VMS, MVS and NT (DOS) style
  directory listings
- Bookmarks menu to allow you to quickly connect to remote sites
- Fully Internationalized

From Antoine Jacoutot <ajacoutot@lphp.org>
2005-11-02 20:19:29 +00:00

17 lines
528 B
Plaintext

$OpenBSD: patch-src_text_gftp-text_c,v 1.1.1.1 2005/11/02 20:19:29 alek Exp $
--- src/text/gftp-text.c.orig Thu Oct 20 11:39:31 2005
+++ src/text/gftp-text.c Thu Oct 20 11:40:18 2005
@@ -185,7 +185,12 @@ gftp_text_ask_question (const char *ques
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,