diff options
author | Chris Packham <judge.packham@gmail.com> | 2022-05-08 14:06:21 +1200 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2022-05-10 19:46:53 +1200 |
commit | 6d5227b63b096b052dde8717822db259971db515 (patch) | |
tree | 367194d0497ac11587d4740d8c180009605a9e27 /packages/glibc/2.12.1/0028-fnmatch.patch | |
parent | 53bbdc74252f68a3800d222dddee69e63b617bf9 (diff) | |
download | crosstool-ng-6d5227b63b096b052dde8717822db259971db515.tar.gz crosstool-ng-6d5227b63b096b052dde8717822db259971db515.tar.bz2 crosstool-ng-6d5227b63b096b052dde8717822db259971db515.zip |
Remove obsolete glibc 2.12.1
glibc 2.12.1 was marked as obsolete. Now that the 1.25.0 release is out
this version can be removed completely. As glibc 2.12.1 was the last
remaining version supported by glibc-ports support for glibc-ports is
also removed.
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/glibc/2.12.1/0028-fnmatch.patch')
-rw-r--r-- | packages/glibc/2.12.1/0028-fnmatch.patch | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/packages/glibc/2.12.1/0028-fnmatch.patch b/packages/glibc/2.12.1/0028-fnmatch.patch deleted file mode 100644 index 992645a9..00000000 --- a/packages/glibc/2.12.1/0028-fnmatch.patch +++ /dev/null @@ -1,62 +0,0 @@ -http://sourceware.org/ml/libc-hacker/2002-11/msg00071.html - -When fnmatch detects an invalid multibyte character it should fall back to -single byte matching, so that "*" has a chance to match such a string. - -Andreas. - -2005-04-12 Andreas Schwab <schwab@suse.de> - - * posix/fnmatch.c (fnmatch): If conversion to wide character - fails fall back to single byte matching. - ---- - posix/fnmatch.c | 16 ++++++++-------- - 1 file changed, 8 insertions(+), 8 deletions(-) - ---- a/posix/fnmatch.c -+++ b/posix/fnmatch.c -@@ -327,6 +327,7 @@ - # if HANDLE_MULTIBYTE - if (__builtin_expect (MB_CUR_MAX, 1) != 1) - { -+ const char *orig_pattern = pattern; - mbstate_t ps; - size_t n; - const char *p; -@@ -382,10 +383,8 @@ - wstring = (wchar_t *) alloca ((n + 1) * sizeof (wchar_t)); - n = mbsrtowcs (wstring, &p, n + 1, &ps); - if (__builtin_expect (n == (size_t) -1, 0)) -- /* Something wrong. -- XXX Do we have to set `errno' to something which mbsrtows hasn't -- already done? */ -- return -1; -+ /* Something wrong. Fall back to single byte matching. */ -+ goto try_singlebyte; - if (p) - { - memset (&ps, '\0', sizeof (ps)); -@@ -397,10 +396,8 @@ - prepare_wstring: - n = mbsrtowcs (NULL, &string, 0, &ps); - if (__builtin_expect (n == (size_t) -1, 0)) -- /* Something wrong. -- XXX Do we have to set `errno' to something which mbsrtows hasn't -- already done? */ -- return -1; -+ /* Something wrong. Fall back to single byte matching. */ -+ goto try_singlebyte; - wstring = (wchar_t *) alloca ((n + 1) * sizeof (wchar_t)); - assert (mbsinit (&ps)); - (void) mbsrtowcs (wstring, &string, n + 1, &ps); -@@ -408,6 +405,9 @@ - - return internal_fnwmatch (wpattern, wstring, wstring + n, - flags & FNM_PERIOD, flags, NULL); -+ -+ try_singlebyte: -+ pattern = orig_pattern; - } - # endif /* mbstate_t and mbsrtowcs or _LIBC. */ - |