From d94015149671edfe80f8545024c6667f992abcaa Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 1 Apr 2005 17:25:37 +0000 Subject: [PATCH] - Conditionally include . - Conditionally call setlocale(LC_CTYPE, ""). --- main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.c b/main.c index b7e6c3a4..0c5fc57d 100644 --- a/main.c +++ b/main.c @@ -20,6 +20,9 @@ */ #include "rsync.h" +#if defined CONFIG_LOCALE && defined HAVE_LOCALE_H +#include +#endif extern int verbose; extern int dry_run; @@ -1115,6 +1118,10 @@ int main(int argc,char *argv[]) * see the EPIPE. */ signal(SIGPIPE, SIG_IGN); +#if defined CONFIG_LOCALE && defined HAVE_SETLOCALE + setlocale(LC_CTYPE, ""); +#endif + /* Initialize push_dir here because on some old systems getcwd * (implemented by forking "pwd" and reading its output) doesn't * work when there are other child processes. Also, on all systems -- 2.34.1