diff options
Diffstat (limited to 'examples/rlcat.c')
-rw-r--r-- | examples/rlcat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/rlcat.c b/examples/rlcat.c index b494241..f1b0362 100644 --- a/examples/rlcat.c +++ b/examples/rlcat.c @@ -45,6 +45,10 @@ extern void exit(); #endif +#ifdef HAVE_LOCALE_H +# include <locale.h> +#endif + #ifndef errno extern int errno; #endif @@ -79,6 +83,10 @@ main (argc, argv) char *temp; int opt, Vflag, Nflag; +#ifdef HAVE_SETLOCALE + setlocale (LC_ALL, ""); +#endif + progname = strrchr(argv[0], '/'); if (progname == 0) progname = argv[0]; |