Adhemerval Zanella a79328c745 posix: Falling back to non wide mode in case of encoding error [BZ #14185]
Gnulib has added the proposed fix with aed23714d60 (done in 2005), but
recently with a glibc merge with 67306f6 (done in 2020 with sync back)
it has fallback to old semantic to return -1 on in case of failure.

From gnulib developer feedback it was an oversight.  Although the full
fix for BZ #14185 would require to rewrite fnmatch implementation to use
mbrtowc instead of mbsrtowcs on the full input, this mitigate the issue
and it has been used by gnulib for a long time.

This patch also removes the alloca usage on the string convertion to
wide characters before calling the internal function.

Checked on x86_64-linux-gnu.
2021-02-23 15:58:04 -03:00
..
2021-01-04 08:42:25 -03:00
2021-01-04 09:02:39 -03:00
2021-01-04 08:41:53 -03:00
2021-01-04 08:41:53 -03:00
2021-01-04 08:38:52 -03:00
2021-02-09 16:58:16 -03:00
2021-01-04 08:38:52 -03:00