From: Chet Ramey Date: Wed, 26 Nov 2025 17:49:17 +0000 (-0500) Subject: Bash-5.3 patch 6: fix issues with range expressions and non-ascii characters in glob... X-Git-Url: https://git.feebdaed.xyz/?a=commitdiff_plain;h=c31cd58e6c4d24cec178e9dc6d26a768b4ecbd1d;p=0xmirror%2Fbash.git Bash-5.3 patch 6: fix issues with range expressions and non-ascii characters in glob patterns when globasciiranges is enabled --- diff --git a/lib/glob/smatch.c b/lib/glob/smatch.c index e42b8fc..af3856a 100644 --- a/lib/glob/smatch.c +++ b/lib/glob/smatch.c @@ -390,7 +390,7 @@ charcmp_wc (wint_t c1, wint_t c2, int forcecoll) if (c1 == c2) return 0; - if (forcecoll == 0 && glob_asciirange && c1 <= UCHAR_MAX && c2 <= UCHAR_MAX) + if (forcecoll == 0 && glob_asciirange) return ((int)(c1 - c2)); s1[0] = c1; diff --git a/patchlevel.h b/patchlevel.h index 7caf230..b8e99ec 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -25,6 +25,6 @@ regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh looks for to find the patch level (for the sccs version string). */ -#define PATCHLEVEL 5 +#define PATCHLEVEL 6 #endif /* _PATCHLEVEL_H_ */