diff options
Diffstat (limited to 'examples/rl.c')
-rw-r--r-- | examples/rl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/rl.c b/examples/rl.c index a5cf276..39e5b8e 100644 --- a/examples/rl.c +++ b/examples/rl.c @@ -38,6 +38,10 @@ extern void exit(); #endif +#ifdef HAVE_LOCALE_H +# include <locale.h> +#endif + #if defined (READLINE_LIBRARY) # include "posixstat.h" # include "readline.h" @@ -93,6 +97,10 @@ main (argc, argv) else progname++; +#ifdef HAVE_SETLOCALE + setlocale (LC_ALL, ""); +#endif + /* defaults */ prompt = "readline$ "; fd = nch = 0; |