Author: ache
Date: Wed Sep 28 20:54:47 2016
New Revision: 306416
URL: https://svnweb.freebsd.org/changeset/base/306416
Log:
MFC r306075,r306109
1) Microoptimize %p case.
2) Implememt %u for GNU compatibility.
3) Don't forget to advance buf for %w/%u.
4) Fail with incomplete week
Author: ache
Date: Wed Sep 28 20:52:58 2016
New Revision: 306415
URL: https://svnweb.freebsd.org/changeset/base/306415
Log:
MFC r306075,r306109
1) Microoptimize %p case.
2) Implememt %u for GNU compatibility.
3) Don't forget to advance buf for %w/%u.
4) Fail with incomplete week
Author: ache
Date: Wed Sep 28 20:49:33 2016
New Revision: 306414
URL: https://svnweb.freebsd.org/changeset/base/306414
Log:
MFC r306075,r306109
1) Microoptimize %p case.
2) Implememt %u for GNU compatibility.
3) Don't forget to advance buf for %w/%u.
4) Fail with incomplete week
Author: ache
Date: Sun Sep 25 23:05:44 2016
New Revision: 306326
URL: https://svnweb.freebsd.org/changeset/base/306326
Log:
MFC r272562,r272678,r272679
1) Fix the case we have less arguments for format string than we expected.
2) Return error on unsupported format specs.
(both
Author: ache
Date: Thu Sep 22 16:49:53 2016
New Revision: 306201
URL: https://svnweb.freebsd.org/changeset/base/306201
Log:
MFC r305841
Implement multibyte encoding support for -v with fallback
Modified:
stable/11/bin/cat/cat.c
Directory Properties:
stable/11/ (props changed)
Author: ache
Date: Thu Sep 22 16:46:59 2016
New Revision: 306200
URL: https://svnweb.freebsd.org/changeset/base/306200
Log:
MFC r305841
Implement multibyte encoding support for -v with fallback
Modified:
stable/10/bin/cat/cat.c
Directory Properties:
stable/10/ (props changed)
Author: ache
Date: Wed Sep 21 15:47:40 2016
New Revision: 306109
URL: https://svnweb.freebsd.org/changeset/base/306109
Log:
1) For already non-standard %z extension implement GNU compatible formats:
+hh and -hh.
2) Check for incorrect values for %z.
MFC after: 7 days
Modified:
Author: ache
Date: Wed Sep 21 06:44:32 2016
New Revision: 306075
URL: https://svnweb.freebsd.org/changeset/base/306075
Log:
1) Microoptimize %p case.
2) Implememt %u for GNU compatibility.
3) Don't forget to advance buf for %w/%u.
4) Fail with incomplete week (week 0) request and no such
Author: ache
Date: Thu Sep 15 17:24:39 2016
New Revision: 305841
URL: https://svnweb.freebsd.org/changeset/base/305841
Log:
Implement multibyte encoding support for -v with fallback
MFC after: 7 days
Modified:
head/bin/cat/cat.c
Modified: head/bin/cat/cat.c
Author: ache
Date: Thu Sep 8 07:16:15 2016
New Revision: 305584
URL: https://svnweb.freebsd.org/changeset/base/305584
Log:
MFC r305413
Fix error handling.
Modified:
stable/11/lib/libc/stdio/fgets.c
Directory Properties:
stable/11/ (props changed)
Modified:
Author: ache
Date: Thu Sep 8 07:14:48 2016
New Revision: 305583
URL: https://svnweb.freebsd.org/changeset/base/305583
Log:
MFC r305413
Fix error handling.
Modified:
stable/10/lib/libc/stdio/fgets.c
Directory Properties:
stable/10/ (props changed)
Modified:
Author: ache
Date: Thu Sep 8 06:53:18 2016
New Revision: 305582
URL: https://svnweb.freebsd.org/changeset/base/305582
Log:
MFC r305406,r305409,r305412
1) Fix errors handling.
2) Prevent out of bounds access to ws[-1] (passed buffer) which happens
when the first mb sequence is
Author: ache
Date: Thu Sep 8 05:13:50 2016
New Revision: 305577
URL: https://svnweb.freebsd.org/changeset/base/305577
Log:
MFC r305406,r305409,r305412
1) Fix errors handling.
2) Prevent out of bounds access to ws[-1] (passed buffer) which happens
when the first mb sequence is
Author: ache
Date: Tue Sep 6 00:53:20 2016
New Revision: 305450
URL: https://svnweb.freebsd.org/changeset/base/305450
Log:
MFC r305365
The bug:
$ echo x | awk '/[[:cntrl:]]/'
x
The NUL character in cntrl class truncates the pattern, and an empty
pattern matches anything. The
Author: ache
Date: Tue Sep 6 00:33:54 2016
New Revision: 305448
URL: https://svnweb.freebsd.org/changeset/base/305448
Log:
MFC r305365
The bug:
$ echo x | awk '/[[:cntrl:]]/'
x
The NUL character in cntrl class truncates the pattern, and an empty
pattern matches anything. The
Author: ache
Date: Tue Sep 6 00:32:33 2016
New Revision: 305447
URL: https://svnweb.freebsd.org/changeset/base/305447
Log:
MFC r305365
The bug:
$ echo x | awk '/[[:cntrl:]]/'
x
The NUL character in cntrl class truncates the pattern, and an empty
pattern matches anything. The
Author: ache
Date: Mon Sep 5 06:46:04 2016
New Revision: 305413
URL: https://svnweb.freebsd.org/changeset/base/305413
Log:
Fix error handling.
MFC after: 3 days
Modified:
head/lib/libc/stdio/fgets.c
Modified: head/lib/libc/stdio/fgets.c
Author: ache
Date: Mon Sep 5 06:10:51 2016
New Revision: 305412
URL: https://svnweb.freebsd.org/changeset/base/305412
Log:
Fix n == 1 case. Here should be no physical read (fill buffer) attempt
(we read n - 1 chars with the room for NUL, see fgets()),
and no NULL return.
MFC after:
Author: ache
Date: Mon Sep 5 04:49:58 2016
New Revision: 305409
URL: https://svnweb.freebsd.org/changeset/base/305409
Log:
1) Prevent out of bounds access to ws[-1] (passed buffer) which happens
when the first mb sequence is incomplete and there are not enougn chars in
the read buffer.
Author: ache
Date: Mon Sep 5 03:37:28 2016
New Revision: 305406
URL: https://svnweb.freebsd.org/changeset/base/305406
Log:
Fix errors handling.
MFC after: 3 days
Modified:
head/lib/libc/stdio/fgetws.c
Modified: head/lib/libc/stdio/fgetws.c
Author: ache
Date: Mon Sep 5 02:00:35 2016
New Revision: 305404
URL: https://svnweb.freebsd.org/changeset/base/305404
Log:
MFC r305241
fgetwc(3) may set both __SEOF and __SERR at once (in case of incomplete
sequence near EOF), so we can't just check for
(wc == WEOF && !__sfeof(fp))
Author: ache
Date: Mon Sep 5 01:57:32 2016
New Revision: 305403
URL: https://svnweb.freebsd.org/changeset/base/305403
Log:
MFC r305241
fgetwc(3) may set both __SEOF and __SERR at once (in case of incomplete
sequence near EOF), so we can't just check for
(wc == WEOF && !__sfeof(fp))
Author: ache
Date: Mon Sep 5 00:41:17 2016
New Revision: 305402
URL: https://svnweb.freebsd.org/changeset/base/305402
Log:
MFC r305144
'addrlen' does not matter when we need to find the first non-zero bit in
the byte from the left and 'addrlen' already counted in 'lim'.
PR:
Author: ache
Date: Mon Sep 5 00:36:52 2016
New Revision: 305401
URL: https://svnweb.freebsd.org/changeset/base/305401
Log:
MFC r305144
'addrlen' does not matter when we need to find the first non-zero bit in
the byte from the left and 'addrlen' already counted in 'lim'.
PR:
Author: ache
Date: Sun Sep 4 00:35:55 2016
New Revision: 305370
URL: https://svnweb.freebsd.org/changeset/base/305370
Log:
MFC r305219
If error happens, don't overwrite original errno comes from __mbrtowc()
and __srefill().
Modified:
stable/11/lib/libc/stdio/fgetwc.c
Directory
Author: ache
Date: Sun Sep 4 00:34:15 2016
New Revision: 305369
URL: https://svnweb.freebsd.org/changeset/base/305369
Log:
MFC r305219
If error happens, don't overwrite original errno comes from __mbrtowc()
and __srefill().
Modified:
stable/10/lib/libc/stdio/fgetwc.c
Directory
Author: ache
Date: Sat Sep 3 23:04:56 2016
New Revision: 305365
URL: https://svnweb.freebsd.org/changeset/base/305365
Log:
The bug:
$ echo x | awk '/[[:cntrl:]]/'
x
The NUL character in cntrl class truncates the pattern, and an empty
pattern matches anything. The patch skips NUL as
Author: ache
Date: Sat Sep 3 01:09:22 2016
New Revision: 305317
URL: https://svnweb.freebsd.org/changeset/base/305317
Log:
MFC r305133
Apply the same qsort() usage fix as in r304911 getaddrinfo.c
qsort() can't be stabilized with just return(-1) alone.
Modified:
Author: ache
Date: Sat Sep 3 01:08:52 2016
New Revision: 305316
URL: https://svnweb.freebsd.org/changeset/base/305316
Log:
MFC r305133
Apply the same qsort() usage fix as in r304911 getaddrinfo.c
qsort() can't be stabilized with just return(-1) alone.
Modified:
Author: ache
Date: Thu Sep 1 20:45:04 2016
New Revision: 305241
URL: https://svnweb.freebsd.org/changeset/base/305241
Log:
fgetwc(3) may set both __SEOF and __SERR at once (in case of incomplete
sequence near EOF), so we can't just check for
(wc == WEOF && !__sfeof(fp)) and must relay on
Author: ache
Date: Thu Sep 1 18:12:53 2016
New Revision: 305219
URL: https://svnweb.freebsd.org/changeset/base/305219
Log:
If error happens, don't overwrite original errno comes from __mbrtowc()
and __srefill().
MFC after: 3 days
Modified:
head/lib/libc/stdio/fgetwc.c
Modified:
Author: ache
Date: Wed Aug 31 18:49:50 2016
New Revision: 305144
URL: https://svnweb.freebsd.org/changeset/base/305144
Log:
'addrlen' does not matter when we need to find the first non-zero bit in
the byte from the left and 'addrlen' already counted in 'lim'.
PR: 212121
Submitted
Author: ache
Date: Wed Aug 31 15:47:58 2016
New Revision: 305133
URL: https://svnweb.freebsd.org/changeset/base/305133
Log:
Apply the same qsort() usage fix as in r304911 getaddrinfo.c
qsort() can't be stabilized with just return(-1) alone.
MFC after: 3 days
Modified:
Author: ache
Date: Tue Aug 30 01:01:41 2016
New Revision: 305038
URL: https://svnweb.freebsd.org/changeset/base/305038
Log:
MFC r304911
The formal behavior of qsort is unstable with regard to objects that
are equal. Unfortunately, RFC 3484 requires that otherwise equal objects
remain
Author: ache
Date: Tue Aug 30 00:57:57 2016
New Revision: 305037
URL: https://svnweb.freebsd.org/changeset/base/305037
Log:
MFC r304911
The formal behavior of qsort is unstable with regard to objects that
are equal. Unfortunately, RFC 3484 requires that otherwise equal objects
remain
Author: ache
Date: Sat Aug 27 14:43:13 2016
New Revision: 304911
URL: https://svnweb.freebsd.org/changeset/base/304911
Log:
The formal behavior of qsort is unstable with regard to objects that
are equal. Unfortunately, RFC 3484 requires that otherwise equal objects
remain in the order
Author: ache
Date: Sat Aug 27 11:07:57 2016
New Revision: 304896
URL: https://svnweb.freebsd.org/changeset/base/304896
Log:
MFC r304607,r304641,r304819,r304811
1) Don't forget to set __SERR on __slbexpand() error.
2) Remove "Fast path" from fgetwc()/fputwc() since it can't detect
Author: ache
Date: Sat Aug 27 10:34:01 2016
New Revision: 304893
URL: https://svnweb.freebsd.org/changeset/base/304893
Log:
MFC r304607,r304641,r304819,r304811
1) Don't forget to set __SERR on __slbexpand() error.
2) Remove "Fast path" from fgetwc()/fputwc() since it can't detect
Author: ache
Date: Sat Aug 27 10:00:36 2016
New Revision: 304890
URL: https://svnweb.freebsd.org/changeset/base/304890
Log:
MFC r304810
Don't check for __SERR which may stick from one of any previous stdio
functions.
__SERR is for user and the rest of stdio code do not check it
for
Author: ache
Date: Sat Aug 27 09:58:06 2016
New Revision: 304888
URL: https://svnweb.freebsd.org/changeset/base/304888
Log:
MFC r304810
Don't check for __SERR which may stick from one of any previous stdio
functions.
__SERR is for user and the rest of stdio code do not check it
for
Author: ache
Date: Fri Aug 26 21:28:24 2016
New Revision: 304865
URL: https://svnweb.freebsd.org/changeset/base/304865
Log:
Bump __FreeBSD_version after LC_*_MASK fix
Modified:
stable/11/sys/sys/param.h
Modified: stable/11/sys/sys/param.h
Author: ache
Date: Fri Aug 26 21:26:33 2016
New Revision: 304864
URL: https://svnweb.freebsd.org/changeset/base/304864
Log:
Bump __FreeBSD_version after LC_*_MASK fix
Modified:
stable/10/sys/sys/param.h
Modified: stable/10/sys/sys/param.h
Author: ache
Date: Fri Aug 26 21:23:38 2016
New Revision: 304863
URL: https://svnweb.freebsd.org/changeset/base/304863
Log:
MFC r304703, r304755
1) _locale.h
LC_*_MASK bit shifting order was partially broken from the initial commit
time at year 2012. Only LC_COLLATE_MASK and
Author: ache
Date: Fri Aug 26 21:19:23 2016
New Revision: 304862
URL: https://svnweb.freebsd.org/changeset/base/304862
Log:
MFC r304703, r304755
1) _locale.h
LC_*_MASK bit shifting order was partially broken from the initial commit
time at year 2012. Only LC_COLLATE_MASK and
Author: ache
Date: Thu Aug 25 21:14:26 2016
New Revision: 304819
URL: https://svnweb.freebsd.org/changeset/base/304819
Log:
Original fgetln() from 44lite return sucess for line tail errors,
i.e. partial line, but set __SERR and errno in the same time, which
is inconsistent.
Now both
Author: ache
Date: Thu Aug 25 19:55:31 2016
New Revision: 304816
URL: https://svnweb.freebsd.org/changeset/base/304816
Log:
MFC r295632
getln: We cannot expand the buffer beyond INT_MAX (_size overflows).
In such cases return ENOMEM. This is a limitation of our
implementation,
Author: ache
Date: Thu Aug 25 17:30:00 2016
New Revision: 304811
URL: https://svnweb.freebsd.org/changeset/base/304811
Log:
Remove "Fast path", it bypass __wcrtomb() and all its error checking.
One of affected encoding example: US-ASCII
MFC after: 7 days
Modified:
Author: ache
Date: Thu Aug 25 17:13:04 2016
New Revision: 304810
URL: https://svnweb.freebsd.org/changeset/base/304810
Log:
Don't check for __SERR which may stick from one of any previous stdio
functions.
__SERR is for user and the rest of stdio code do not check it
for error sensing
Author: ache
Date: Wed Aug 24 16:44:27 2016
New Revision: 304755
URL: https://svnweb.freebsd.org/changeset/base/304755
Log:
Use current locale (f.e. set by thread). It was global locale always
previously.
MFC after: 7 days
Modified:
head/lib/libc/nls/msgcat.c
Modified:
Author: ache
Date: Wed Aug 24 15:36:48 2016
New Revision: 304752
URL: https://svnweb.freebsd.org/changeset/base/304752
Log:
Bump __FreeBSD_version for LC_*_MASK fix for newlocale(3) and querylocale(3)
Modified:
head/sys/sys/param.h
Modified: head/sys/sys/param.h
Author: ache
Date: Tue Aug 23 20:33:56 2016
New Revision: 304703
URL: https://svnweb.freebsd.org/changeset/base/304703
Log:
LC_*_MASK bit shifting order was partially broken from the initial commit
time at year 2012. Only LC_COLLATE_MASK and LC_CTYPE_MASK are in the
right order.
The
Author: ache
Date: Tue Aug 23 00:00:06 2016
New Revision: 304648
URL: https://svnweb.freebsd.org/changeset/base/304648
Log:
Direct commit, equal to MFC part of r295632 which is not planned for
MFC at whole.
Set __SERR on __slbexpand() errors.
Modified:
stable/10/lib/libc/stdio/fgetln.c
Author: ache
Date: Mon Aug 22 22:28:41 2016
New Revision: 304641
URL: https://svnweb.freebsd.org/changeset/base/304641
Log:
1) Back out r304607 case 2). fgetwln() as its pair fgetln() supposed to
return partial line on any errors. See the comment in fgetln.c.
Add corresponding comment to
Author: ache
Date: Mon Aug 22 15:44:54 2016
New Revision: 304607
URL: https://svnweb.freebsd.org/changeset/base/304607
Log:
Fix error processing.
1) Don't forget to set __SERR on __slbexpand() error.
2) Check for __fgetwc() errors using errno. Don't check for __SERR
as PR suggested, it
Author: ache
Date: Thu Aug 18 10:37:20 2016
New Revision: 304379
URL: https://svnweb.freebsd.org/changeset/base/304379
Log:
MFC r304374
Fix TAB replaced with spaces in prev. commit.
Modified:
stable/11/usr.bin/calendar/calendars/ru_RU.UTF-8/calendar.pagan
Directory Properties:
Author: ache
Date: Thu Aug 18 10:18:11 2016
New Revision: 304374
URL: https://svnweb.freebsd.org/changeset/base/304374
Log:
Fix TAB replaced with spaces in prev. commit.
Modified:
head/usr.bin/calendar/calendars/ru_RU.UTF-8/calendar.pagan
Modified:
Author: ache
Date: Thu Aug 18 08:52:55 2016
New Revision: 304343
URL: https://svnweb.freebsd.org/changeset/base/304343
Log:
MFC r303581
Fix date
Modified:
stable/11/usr.bin/calendar/calendars/ru_RU.KOI8-R/calendar.military
Author: ache
Date: Thu Aug 18 08:47:06 2016
New Revision: 304341
URL: https://svnweb.freebsd.org/changeset/base/304341
Log:
MFC r303568
Remove another vestige of scripted conversion
Modified:
stable/11/usr.bin/calendar/calendars/ru_RU.UTF-8/calendar.pagan
Directory Properties:
Author: ache
Date: Thu Aug 18 08:36:24 2016
New Revision: 304340
URL: https://svnweb.freebsd.org/changeset/base/304340
Log:
MFC r303569
Reflect CLDR timedef changes
Modified:
stable/11/usr.bin/calendar/calendars/ru_RU.KOI8-R/calendar.common
Author: ache
Date: Thu Aug 18 07:43:18 2016
New Revision: 304339
URL: https://svnweb.freebsd.org/changeset/base/304339
Log:
MFC r302937
Path generation was not according to collate
Approved by:jilles
Added:
stable/11/bin/sh/tests/expansion/pathname6.0
- copied unchanged
Author: ache
Date: Wed Aug 17 09:34:56 2016
New Revision: 304284
URL: https://svnweb.freebsd.org/changeset/base/304284
Log:
MFC r302943,r302944,r303004,r303010,r303011,r303013,r303014,r303074,
r303088,r303142,r303208,r303210,r303530,r303536,r303564,r303565,
r303706
In short:
Author: ache
Date: Wed Aug 17 09:12:02 2016
New Revision: 304278
URL: https://svnweb.freebsd.org/changeset/base/304278
Log:
MFC r302827
Optimize [Cc]flag case: don't repeatedly add the last character of
string2 to squeeze cset when string2 reach its EOS state.
Modified:
Author: ache
Date: Wed Aug 17 09:10:22 2016
New Revision: 304277
URL: https://svnweb.freebsd.org/changeset/base/304277
Log:
MFC r302826
Document incomplete support of [=equiv=] and collation for ranges.
Modified:
stable/11/usr.bin/tr/tr.1
Directory Properties:
stable/11/ (props
Author: ache
Date: Wed Aug 17 09:07:43 2016
New Revision: 304276
URL: https://svnweb.freebsd.org/changeset/base/304276
Log:
MFC r302831
To mimic system glob, we definitely don't need manual upper/lower hack.
The author clearly disagree in the comment, so this patch will be not
Author: ache
Date: Wed Aug 17 08:51:47 2016
New Revision: 304275
URL: https://svnweb.freebsd.org/changeset/base/304275
Log:
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
Author: ache
Date: Wed Aug 17 08:37:40 2016
New Revision: 304272
URL: https://svnweb.freebsd.org/changeset/base/304272
Log:
MFC r303094
Continuation lines with comments badly affects gprof, it is excluded from
build on amd64 f.e.
Modified:
stable/11/usr.bin/Makefile
Directory
Author: ache
Date: Tue Aug 16 07:14:09 2016
New Revision: 304203
URL: https://svnweb.freebsd.org/changeset/base/304203
Log:
MFC r302943,r302944,r303004,r303010,r303011,r303013,r303014,r303074,
r303088,r303142,r303208,r303210,r303530,r303536,r303564,r303565,
r303706
In short:
Author: ache
Date: Wed Aug 3 09:09:34 2016
New Revision: 303706
URL: https://svnweb.freebsd.org/changeset/base/303706
Log:
Although the code amount is not big, move POSIX error processing into
two sepatate functions to make glob(3) code less obscure and more simple.
There is no needs to
Author: ache
Date: Sun Jul 31 10:37:09 2016
New Revision: 303582
URL: https://svnweb.freebsd.org/changeset/base/303582
Log:
Direct commit of adapted r303581.
Fix date.
Modified:
stable/10/usr.bin/calendar/calendars/ru_RU.KOI8-R/calendar.military
Author: ache
Date: Sun Jul 31 10:15:04 2016
New Revision: 303581
URL: https://svnweb.freebsd.org/changeset/base/303581
Log:
Fix date
Modified:
head/usr.bin/calendar/calendars/ru_RU.KOI8-R/calendar.military
head/usr.bin/calendar/calendars/ru_RU.UTF-8/calendar.military
Modified:
Author: ache
Date: Sun Jul 31 03:26:53 2016
New Revision: 303569
URL: https://svnweb.freebsd.org/changeset/base/303569
Log:
Reflect CLDR timedef changes
Modified:
head/usr.bin/calendar/calendars/ru_RU.KOI8-R/calendar.common
head/usr.bin/calendar/calendars/ru_RU.KOI8-R/calendar.holiday
Author: ache
Date: Sun Jul 31 03:11:10 2016
New Revision: 303568
URL: https://svnweb.freebsd.org/changeset/base/303568
Log:
Remove another vestige of scripted conversion
Modified:
head/usr.bin/calendar/calendars/ru_RU.UTF-8/calendar.pagan
Modified:
Author: ache
Date: Sun Jul 31 02:43:45 2016
New Revision: 303566
URL: https://svnweb.freebsd.org/changeset/base/303566
Log:
Remove vestige of scripted conversion
Modified:
head/usr.bin/calendar/calendars/ru_RU.UTF-8/calendar.common
Modified:
Author: ache
Date: Sun Jul 31 02:28:50 2016
New Revision: 303565
URL: https://svnweb.freebsd.org/changeset/base/303565
Log:
In addition to prev. commit. Since potentially glob2() can return error
without setting errno, restore errno before its call.
Modified:
head/lib/libc/gen/glob.c
Author: ache
Date: Sun Jul 31 01:14:06 2016
New Revision: 303564
URL: https://svnweb.freebsd.org/changeset/base/303564
Log:
Both C99 and POSIX directly prohibits any standard function to set errno
to 0. Breaking this rule in 2001 NetBSD hack was imported which attempts
to workaround very
Author: ache
Date: Sat Jul 30 03:11:54 2016
New Revision: 303536
URL: https://svnweb.freebsd.org/changeset/base/303536
Log:
Rework r303074 case 4. Don't immediatelly skip directory entries which
cause MAXPATHLEN exceeded. Process them first through gl_errfunc() and
GLOB_ERR.
Modified:
Author: ache
Date: Sat Jul 30 02:09:11 2016
New Revision: 303530
URL: https://svnweb.freebsd.org/changeset/base/303530
Log:
Reset errno for readdirfunc() before contunue.
Modified:
head/lib/libc/gen/glob.c
Modified: head/lib/libc/gen/glob.c
Author: ache
Date: Sat Jul 23 03:49:02 2016
New Revision: 303210
URL: https://svnweb.freebsd.org/changeset/base/303210
Log:
1) POSIX defines well when GLOB_NOMATCH or original pattern
(instead) should be returned, so we can't return GLOB_NOMATCH blindly
just because we dislike something in
Author: ache
Date: Sat Jul 23 01:21:58 2016
New Revision: 303208
URL: https://svnweb.freebsd.org/changeset/base/303208
Log:
1) We need the original pattern (in the next round of changes) not only in
case it fully constructed, but for half-constructed too, so have no
other choice to pass
Author: ache
Date: Fri Jul 22 19:36:11 2016
New Revision: 303201
URL: https://svnweb.freebsd.org/changeset/base/303201
Log:
MFC: r302827
Optimize [Cc]flag case: don't repeatedly add the last character of
string2 to squeeze cset when string2 reach its EOS state.
Modified:
Author: ache
Date: Fri Jul 22 19:34:43 2016
New Revision: 303200
URL: https://svnweb.freebsd.org/changeset/base/303200
Log:
MFC: r302826
Document incomplete support of [=equiv=] and collation for ranges.
Modified:
stable/10/usr.bin/tr/tr.1
Directory Properties:
stable/10/ (props
Author: ache
Date: Fri Jul 22 16:48:39 2016
New Revision: 303191
URL: https://svnweb.freebsd.org/changeset/base/303191
Log:
Forget to merge this changes in prev. MFC
Modified:
stable/10/lib/libc/locale/collcmp.c
Modified: stable/10/lib/libc/locale/collcmp.c
Author: ache
Date: Fri Jul 22 14:24:17 2016
New Revision: 303185
URL: https://svnweb.freebsd.org/changeset/base/303185
Log:
MFC: r302824
1) Eliminate possibility to call __*collate_range_cmp() with inclomplete
locale (which cause core dump) by removing whole 'table' argument
by which
Author: ache
Date: Thu Jul 21 12:53:36 2016
New Revision: 303142
URL: https://svnweb.freebsd.org/changeset/base/303142
Log:
1) GLOB_BRACE was somewhat broken. First it repeatedly calls glob0() in
globexp1() recursive calls, but glob0() was not supposed to be called
repeatedly in the
Author: ache
Date: Wed Jul 20 15:59:37 2016
New Revision: 303094
URL: https://svnweb.freebsd.org/changeset/base/303094
Log:
Continuation lines with comments badly affects gprof, it is excluded from
build on amd64 f.e.
Modified:
head/usr.bin/Makefile
Modified: head/usr.bin/Makefile
Author: ache
Date: Wed Jul 20 12:46:21 2016
New Revision: 303088
URL: https://svnweb.freebsd.org/changeset/base/303088
Log:
In addition to r303074 case 1, search for protected L'/' too in globtilde()
Modified:
head/lib/libc/gen/glob.c
Modified: head/lib/libc/gen/glob.c
Author: ache
Date: Wed Jul 20 07:30:44 2016
New Revision: 303074
URL: https://svnweb.freebsd.org/changeset/base/303074
Log:
1) Per POSIX (and glibc) GLOB_NOCHECK should return original pattern,
unmodified, if no matches found. But our original code strips all '\'
returning it. Rewrite the
Author: ache
Date: Tue Jul 19 00:25:27 2016
New Revision: 303014
URL: https://svnweb.freebsd.org/changeset/base/303014
Log:
1) Don't protect \/ and \. even if user say so. They are not special chars
in any case and needed for further processing. For ~ expansion too.
2) Don't terminate
Author: ache
Date: Mon Jul 18 20:24:13 2016
New Revision: 303013
URL: https://svnweb.freebsd.org/changeset/base/303013
Log:
g_Ctoc() conversion buffers are smaller than needed up to MB_CUR_MAX - 1
since whole conversion needs a room for (len >= MB_CUR_MAX). It is no
difference when
Author: ache
Date: Mon Jul 18 19:20:49 2016
New Revision: 303011
URL: https://svnweb.freebsd.org/changeset/base/303011
Log:
Change patch from r303004 case 3. According to POSIX gl_errfunc should be
called first, then GLOB_ERR should be considered.
Modified:
head/lib/libc/gen/glob.c
Author: ache
Date: Mon Jul 18 18:24:31 2016
New Revision: 303010
URL: https://svnweb.freebsd.org/changeset/base/303010
Log:
1) Add all characters from ~ expansion as protected to be not interpreted
as pattern meta chars.
2) GLOB_ERR and gl_errfunc are supposed to work only for real
Author: ache
Date: Mon Jul 18 16:06:21 2016
New Revision: 303004
URL: https://svnweb.freebsd.org/changeset/base/303004
Log:
1) POSIX defines well when GLOB_ABORTED can be returned (only for directory
open/read errors and with GLOB_ERR and gl_errfunc processing), so we can't
blindly return
Author: ache
Date: Sun Jul 17 13:10:57 2016
New Revision: 302948
URL: https://svnweb.freebsd.org/changeset/base/302948
Log:
Reflect pathnames sorting in collation order.
Modified:
head/lib/libc/gen/glob.3
Modified: head/lib/libc/gen/glob.3
Author: ache
Date: Sun Jul 17 11:25:24 2016
New Revision: 302944
URL: https://svnweb.freebsd.org/changeset/base/302944
Log:
In g_Ctoc() apply CHAR() macro to *str to strip all flags. It gains nothing
right now, but some architectures theoretically may 64-bit wchar_t and the
code looks more
Author: ache
Date: Sun Jul 17 09:39:59 2016
New Revision: 302943
URL: https://svnweb.freebsd.org/changeset/base/302943
Log:
1) This file full of direct char <-> wchar_t assignment, not converted, cut
them down. This hack still remains:
* 2. Illegal byte sequences in filenames are handled
Author: ache
Date: Sat Jul 16 13:26:18 2016
New Revision: 302937
URL: https://svnweb.freebsd.org/changeset/base/302937
Log:
Path generation was not according to collate
Approved by:jilles
Added:
head/bin/sh/tests/expansion/pathname6.0 (contents, props changed)
Modified:
Author: ache
Date: Thu Jul 14 09:47:49 2016
New Revision: 302833
URL: https://svnweb.freebsd.org/changeset/base/302833
Log:
Back out non-collating [a-z] ranges.
Instead of changing the whole course to another POSIX-permitted way
for consistency and uniformity I decide to completely ignore
Author: ache
Date: Thu Jul 14 09:45:07 2016
New Revision: 302832
URL: https://svnweb.freebsd.org/changeset/base/302832
Log:
Back out non-collating [a-z] ranges.
Instead of changing the whole course to another POSIX-permitted way
for consistency and uniformity I decide to completely ignore
Author: ache
Date: Thu Jul 14 09:40:42 2016
New Revision: 302831
URL: https://svnweb.freebsd.org/changeset/base/302831
Log:
To mimic system glob, we definitely don't need manual upper/lower hack.
The author clearly disagree in the comment, so this patch will be not
submitted upstream.
Author: ache
Date: Thu Jul 14 09:37:16 2016
New Revision: 302830
URL: https://svnweb.freebsd.org/changeset/base/302830
Log:
Back out non-collating [a-z] ranges.
Instead of changing the whole course to another POSIX-permitted way
for consistency and uniformity I decide to completely ignore
1 - 100 of 241 matches
Mail list logo