[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
readline initialisation fix
From: |
Tim Waugh |
Subject: |
readline initialisation fix |
Date: |
Fri, 18 Oct 2002 12:28:43 +0100 |
User-agent: |
Mutt/1.4i |
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib
-D_GNU_SOURCE -O2 -march=i386 -mcpu=i686
uname output: Linux cyberelk.elk 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686
i686 i386 GNU/Linux
Machine Type: i686-pc-linux-gnu
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
Backspace deletes prompt after entering non-ASCII characters
Repeat-By:
ssh into a machine running bash 2.05b, type any non-ASCII (â¬,
for instance), and press backspace twice.
Fix:
This patch was submitted by mitr@volny.cz; see
<https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=74925>.
--- bash-2.05b/lib/readline/nls.c.mitr2 2002-10-10 04:08:35.000000000 +0200
+++ bash-2.05b/lib/readline/nls.c 2002-10-10 04:10:07.000000000 +0200
@@ -86,8 +86,15 @@
#if defined (HAVE_SETLOCALE)
char *t;
+# if 0
/* Set the LC_CTYPE locale category from environment variables. */
t = setlocale (LC_CTYPE, "");
+# else
+ /* Don't set LC_TYPE from environment, because bash maintains its own
+ environment invisible to libc. This obviously doesn't belong in the
+ standalone readline library. */
+ t = setlocale (LC_CTYPE, NULL);
+# endif
if (t && *t && (t[0] != 'C' || t[1]) && (STREQ (t, "POSIX") == 0))
{
_rl_meta_flag = 1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- readline initialisation fix,
Tim Waugh <=