#
324505 |
|
10-Oct-2017 |
pfg |
MFC r322368, r322371: fnmatch(3): improve POSIX conformance.
In a recent interpretation[1], "\\" shall return a non-zero value (indicating either no match or an error).
The fix involves a change over r254091 and now the behavior matches the Sun/IBM/HP closed source implementations and also likely musl libc.
Submitted by: Joerg Schilling <joerg at schily.net>
[1] http://austingroupbugs.net/view.php?id=806
|
#
303185 |
|
22-Jul-2016 |
ache |
MFC: r302824
1) Eliminate possibility to call __*collate_range_cmp() with inclomplete locale (which cause core dump) by removing whole 'table' argument by which it passed.
2) Restore __collate_range_cmp() in __sccl().
3) Collating [a-z] range in regcomp() works for single byte locales only (we can't do it for other ones). In previous state only first 256 wide chars are considered and all others are just silently dropped from the range.
|
#
289943 |
|
25-Oct-2015 |
jilles |
MFC r288309: fnmatch(): Remove exponential behaviour as in sh r229201.
The old code was exponential in the number of asterisks in the pattern. However, once a match has been found upto the next asterisk, the previous asterisks are no longer relevant.
|
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
254091 |
|
08-Aug-2013 |
ache |
According to POSIX \ in the fnmatch(3) pattern should escape any character including '\0', but our version replace escaped '\0' with '\\'. I.e. fnmatch("\\", "\\", 0) should not match while fnmatch("\\", "", 0) should (Linux and NetBSD does the same). Was vice versa.
PR: 181129 MFC after: 1 week
|
#
227753 |
|
20-Nov-2011 |
theraven |
Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation.
Please test any code you have that uses the C standard locale functions!
Reviewed by: das (gdtoa changes) Approved by: dim (mentor)
|
#
206711 |
|
16-Apr-2010 |
jilles |
fnmatch: Fix bad FNM_PERIOD disabling if an asterisk has been seen.
Example: fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME | FNM_PERIOD)
PR: 116074 MFC after: 1 week
|
#
165903 |
|
08-Jan-2007 |
imp |
Per Regents of the University of Calfornia letter, remove advertising clause.
# If I've done so improperly on a file, please let me know.
|
#
144816 |
|
08-Apr-2005 |
stefanf |
Remove unused variables and assignments.
|
#
132812 |
|
29-Jul-2004 |
tjr |
Add support for multibyte characters.
|
#
90045 |
|
31-Jan-2002 |
obrien |
* Remove __P and convert to ANSI prototypes. * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's.
|
#
26492 |
|
06-Jun-1997 |
ache |
Style optimization in newly added POSIX range []] conformance, redo 'for' loop as do...while and remove variable unneded now
|
#
26486 |
|
06-Jun-1997 |
ache |
Add missing FNM_PERIOD check for '[' range Don't treat !^ as first characters in the range, just as negate sign [/] never match if FNM_PATHNAME
|
#
26484 |
|
06-Jun-1997 |
ache |
1) Now conforms POSIX.2 2.8.3.2 requirements about []] pattern 2) Treat unclosed [ range in pattern as regular characters (bash style)
|
#
25269 |
|
29-Apr-1997 |
jdp |
Fix a bug that caused some false mismatches when both FNM_PATHNAME and FNM_LEADING_DIR were specified and the pattern ended with "*". Example: pattern="src/usr.sbin/w*", string="src/usr.sbin/watch/watch.8,v". This should match, but did not.
|
#
24632 |
|
04-Apr-1997 |
ache |
Eliminate some function calls when locale not used
|
#
24630 |
|
04-Apr-1997 |
ache |
Speedup in case locale not used
|
#
19276 |
|
31-Oct-1996 |
ache |
collate_range_cmp -> __collate_range_cmp
|
#
19132 |
|
23-Oct-1996 |
ache |
GNU-style changes: 1) Rename FNM_ICASE to FNM_CASEFOLD 2) Add FNM_LEADING_DIR Add proper (unsigned char) casts to tolower(). Use 'char' function argument for proper sign extension
|
#
19059 |
|
20-Oct-1996 |
wosch |
add flag FNM_ICASE for case insensitve search
Reviewed by: ache
|
#
17552 |
|
12-Aug-1996 |
ache |
Convert to newly aded collate compare function
|
#
17533 |
|
12-Aug-1996 |
ache |
Use collate for alpha character ranges
|
#
17141 |
|
12-Jul-1996 |
jkh |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
#
8870 |
|
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
#
1574 |
|
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1573, which included commits to RCS files with non-trunk default branches.
|
#
1573 |
|
27-May-1994 |
rgrimes |
BSD 4.4 Lite Lib Sources
|