summaryrefslogtreecommitdiff
path: root/examples/excallback.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/excallback.c')
-rw-r--r--examples/excallback.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/excallback.c b/examples/excallback.c
index 4206acf..923c923 100644
--- a/examples/excallback.c
+++ b/examples/excallback.c
@@ -50,6 +50,8 @@ Copyright (C) 1999 Jeff Solomon
#include <stdio.h>
#include <termios.h> /* xxx - should make this more general */
+#include <locale.h>
+
#ifdef READLINE_LIBRARY
# include "readline.h"
#else
@@ -104,6 +106,8 @@ main()
{
fd_set fds;
+ setlocale (LC_ALL, "");
+
/* Adjust the terminal slightly before the handler is installed. Disable
* canonical mode processing and set the input character time flag to be
* non-blocking.