1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
*** readline.c.bak Tue Dec 6 01:47:48 1994
--- lib/readline/readline.c Mon Dec 12 04:29:49 1994
***************
*** 958,964 ****
static void
readline_initialize_everything ()
{
! char *t;
/* Find out if we are running in Emacs. */
running_in_emacs = getenv ("EMACS") != (char *)0;
--- 958,964 ----
static void
readline_initialize_everything ()
{
! char *t, *t1;
/* Find out if we are running in Emacs. */
running_in_emacs = getenv ("EMACS") != (char *)0;
***************
*** 993,999 ****
/* Check for LC_CTYPE and use its value to decide the defaults for
8-bit character input and output. */
t = getenv ("LC_CTYPE");
! if (t && (strcmp (t, "iso-8859-1") == 0 || strcmp (t, "iso_8859_1") == 0))
{
_rl_meta_flag = 1;
_rl_convert_meta_chars_to_ascii = 0;
--- 993,1003 ----
/* Check for LC_CTYPE and use its value to decide the defaults for
8-bit character input and output. */
t = getenv ("LC_CTYPE");
! t1 = getenv ("LANG");
! if (t && (strstr (t, "8859-1") != NULL || strstr (t, "8859_1") != NULL ||
! strstr (t, "KOI8-R") != NULL || strstr (t, "koi8-r") != NULL) ||
! t1 && (strstr (t1, "8859-1") != NULL || strstr (t1, "8859_1") != NULL ||
! strstr (t1, "KOI8-R") != NULL || strstr (t1, "koi8-r") != NULL))
{
_rl_meta_flag = 1;
_rl_convert_meta_chars_to_ascii = 0;
|