From 46e838403c98c448cc8866302d13d99b934f7d87 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 31 Oct 1995 08:44:21 +0000 Subject: [PATCH] Add setlocale LC_CTYPE --- gnu/usr.bin/diff/diff.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/usr.bin/diff/diff.c b/gnu/usr.bin/diff/diff.c index ab1549be8643..c81820859e1a 100644 --- a/gnu/usr.bin/diff/diff.c +++ b/gnu/usr.bin/diff/diff.c @@ -22,6 +22,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define GDIFF_MAIN #include "diff.h" +#ifdef __FreeBSD__ +#include +#endif #include #include "getopt.h" #include "fnmatch.h" @@ -235,6 +238,9 @@ main (argc, argv) int width = DEFAULT_WIDTH; int show_c_function = 0; +#ifdef __FreeBSD__ + (void) setlocale(LC_CTYPE, ""); +#endif /* Do our initializations. */ initialize_main (&argc, &argv); program_name = argv[0];