File bash-2.05b-readline-init.patch of Package compat-readline4
--- 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;