This series fixes four build failures in Bash 5.3 when compiled without
multibyte support (e.g., when HANDLE_MULTIBYTE is not defined, or on systems
lacking wide character support).

Patch 1: builtins/printf.def: mb_cur_max is declared only under
HANDLE_MULTIBYTE but was assigned unconditionally, causing a compile error.

Patch 2: lib/glob/glob.c: External declarations using wchar_t and wint_t
were unconditional, causing 'wint_t undeclared' errors when multibyte
support is disabled.

Patch 3: builtins/printf.def: The variable 'c' is an int in the non-multibyte
path but tescape() expects a char *, causing a type mismatch error with
-Werror=incompatible-pointer-types.

Patch 4: lib/glob/smatch.c: locale_utf8locale and UTF8_SINGLEBYTE are not
available without multibyte support, causing undeclared identifier errors in
collseqcmp(), is_cclass(), and the FOLD macro.

Shubham Chakraborty (4):
  builtins/printf.def: fix build when HANDLE_MULTIBYTE is undefined
  lib/glob/glob.c: fix build failure when multibyte support is disabled
  builtins/printf.def: fix type mismatch in tescape call
  lib/glob/smatch.c: fix build failure when multibyte support is
    disabled

 builtins/printf.def |  8 +++++++-
 lib/glob/glob.c     |  4 ++++
 lib/glob/smatch.c   | 11 +++++++++++
 3 files changed, 22 insertions(+), 1 deletion(-)

-- 
2.55.0


Reply via email to