summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/bash/files/bash-2.05b-setlocale.patch')
-rw-r--r--app-shells/bash/files/bash-2.05b-setlocale.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-2.05b-setlocale.patch b/app-shells/bash/files/bash-2.05b-setlocale.patch
new file mode 100644
index 0000000..db48030
--- /dev/null
+++ b/app-shells/bash/files/bash-2.05b-setlocale.patch
@@ -0,0 +1,17 @@
+Use NULL instead of "" to prevent overriding locale information set in
+the environment. See
+ http://bugs.gentoo.org/show_bug.cgi?id=64266
+ http://lists.debian.or.jp/debian-devel/200210/msg00047.html
+
+diff -urN bash-2.05b.orig/lib/readline/nls.c bash-2.05b/lib/readline/nls.c
+--- bash-2.05b.orig/lib/readline/nls.c 2001-10-15 14:32:29.000000000 -0400
++++ bash-2.05b/lib/readline/nls.c 2004-09-29 12:25:24.585683597 -0400
+@@ -87,7 +87,7 @@
+ char *t;
+
+ /* Set the LC_CTYPE locale category from environment variables. */
+- t = setlocale (LC_CTYPE, "");
++ t = setlocale (LC_CTYPE, NULL);
+ if (t && *t && (t[0] != 'C' || t[1]) && (STREQ (t, "POSIX") == 0))
+ {
+ _rl_meta_flag = 1;