summaryrefslogtreecommitdiff
path: root/examples/excallback.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2022-09-26 11:53:27 -0400
committerChet Ramey <chet.ramey@case.edu>2022-09-26 11:53:27 -0400
commitf7a382fd09319b20ef4435b9b554183b605468c1 (patch)
tree445f363418c287fc9994c7b51d412e6765e3450a /examples/excallback.c
parent5263c0d88064fda96292335d12eec1733f91cdc9 (diff)
downloadreadline-f7a382fd09319b20ef4435b9b554183b605468c1.tar.gz
readline-8.2 distribution sources and documentationreadline-8.2
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.