diff options
author | ache <ache@FreeBSD.org> | 1995-10-31 08:44:21 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-10-31 08:44:21 +0000 |
commit | ace51e8ffc14e6da488378e44831da9e155f90d4 (patch) | |
tree | 0dbd9f8a04913c3968be79a2b0f8b6b45a5533de /gnu | |
parent | f84f405c033ddf0b31d0ae5dd21ca4bf85821c13 (diff) | |
download | FreeBSD-src-ace51e8ffc14e6da488378e44831da9e155f90d4.zip FreeBSD-src-ace51e8ffc14e6da488378e44831da9e155f90d4.tar.gz |
Add setlocale LC_CTYPE
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/diff/diff.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/usr.bin/diff/diff.c b/gnu/usr.bin/diff/diff.c index ab1549b..c818208 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 <locale.h> +#endif #include <signal.h> #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]; |