8e927ce3dd
Improvements to the networking code, fixes for several segfaults, i18n fixes, and 38 updated or new translations. - IPv6 is still disabled (thanks to sthen@ for confirming it still doesn't work properly...) ; any taker to fix it, be my guest
16 lines
575 B
Plaintext
16 lines
575 B
Plaintext
$OpenBSD: patch-lib_protocols_c,v 1.1 2008/12/01 16:09:01 ajacoutot Exp $
|
|
--- lib/protocols.c.orig Tue Mar 4 13:28:42 2008
|
|
+++ lib/protocols.c Mon Dec 1 14:54:31 2008
|
|
@@ -459,9 +459,11 @@ gftp_get_next_file (gftp_request * request, const char
|
|
|
|
if (ret >= 0 && fle->file != NULL)
|
|
{
|
|
+#if GLIB_MAJOR_VERSION > 1
|
|
if (g_utf8_validate (fle->file, -1, NULL))
|
|
fle->filename_utf8_encoded = 1;
|
|
else
|
|
+#endif
|
|
{
|
|
utf8 = gftp_filename_to_utf8 (request, fle->file, &destlen);
|
|
if (utf8 != NULL)
|