fixes for extended glob in compat mode; fix for brackets appearing in nested parameter expansions

This commit is contained in:
Chet Ramey
2022-10-07 17:46:16 -04:00
parent 38d9d3590f
commit 22f21b760e
13 changed files with 125 additions and 19 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ _rl_init_locale (void)
lspec = "";
ret = setlocale (LC_CTYPE, lspec); /* ok, since it does not change locale */
if (ret == 0 || *ret == 0)
ret = setlocale (LC_CTYPE, NULL);
ret = setlocale (LC_CTYPE, (char *)NULL);
if (ret == 0 || *ret == 0)
ret = RL_DEFAULT_LOCALE;
#else