+2020-09-16 Paul Eggert <eggert@cs.ucla.edu>
+
+ fnmatch: adjust to match glibc fix
+ This fixes handling of collating symbols in fnmatch (glibc bug 26620).
+ This does not affect Gnulib; it merely keeps Gnulib and glibc
+ closer together, to help with any eventual merge, by incorporating
+ a recent glibc patch. The patch and the following commentary is
+ by Andreas Schwab.
+ * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
+ contains the index into the extra array, whereas wextra points
+ into the extra array at this index, containing the length of the
+ following collating sequence in the wide character representation.
+
2020-09-16 Bruno Haible <bruno@clisp.org>
stat, fstat: Fix compilation error with old mingw headers.
/* Get the collation sequence value. */
is_seqval = true;
# if WIDE_CHAR_VERSION
- cold = wextra[1 + wextra[idx]];
+ cold = wextra[1 + wextra[0]];
# else
idx += 1 + extra[idx];
/* Adjust for the alignment. */
/* Get the collation sequence value. */
is_seqval = true;
# if WIDE_CHAR_VERSION
- cend = wextra[1 + wextra[idx]];
+ cend = wextra[1 + wextra[0]];
# else
idx += 1 + extra[idx];
/* Adjust for the alignment. */