diff lib/protocols.c @ 623:43a0556c994f

2004-11-11 Brian Masney <masneyb@gftp.org> * configure.in - fixes for HP/UX (from "H.Merijn Brand" <h.m.brand@hccnet.nl>) * lib/gftp.h - fixes for large files under HP/UX (from "H.Merijn Brand" <h.m.brand@hccnet.nl>) * lib/protocols.c (gftp_list_files) - if ENABLE_NLS is disabled, then do not use setlocale()
author masneyb
date Thu, 11 Nov 2004 23:48:05 +0000
parents 0e4ca3c8b9cf
children ddf1ec822538
line wrap: on
line diff
--- a/lib/protocols.c	Thu Nov 11 23:33:41 2004 +0000
+++ b/lib/protocols.c	Thu Nov 11 23:48:05 2004 +0000
@@ -365,6 +365,7 @@
 
   g_return_val_if_fail (request != NULL, GFTP_EFATAL);
 
+#if ENABLE_NLS
   gftp_lookup_request_option (request, "remote_lc_time", &remote_lc_time);
   if (remote_lc_time != NULL && *remote_lc_time != '\0')
     locret = setlocale (LC_TIME, remote_lc_time);
@@ -378,6 +379,9 @@
                                  _("Error setting LC_TIME to '%s'. Falling back to '%s'\n"),
                                  remote_lc_time, locret);
     }
+#else
+  locret = _("<unknown>");
+#endif
 
   request->cached = 0;
   if (request->use_cache && (fd = gftp_find_cache_entry (request)) > 0)