| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
|
|
|
|
|
|
|
|
| |
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix
|
|
|
|
|
|
|
|
|
| |
This has already been done for most files that have the Foundation as
the only listed copyright holder. Do it now for files that list
multiple copyright holders, but have the Foundation copyright in its own
section.
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
prone - task.
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
Notes:
svn path=/head/; revision=326193
|
|\
| |
| |
| | |
Notes:
svn path=/projects/collation/; revision=287142
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- in mbrtowc() we need to disallow codepoints above 0x10ffff.
- In wcrtomb() we need to disallow codepoints between 0xd800 and 0xdfff.
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D3399
Notes:
svn path=/head/; revision=287125
|
| |
| |
| |
| | |
Notes:
svn path=/projects/collation/; revision=286518
|
|\|
| |
| |
| | |
Notes:
svn path=/projects/collation/; revision=286492
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Per rfc3629 value greater than 0x10ffff should be rejected
Suggested by: jilles
Notes:
svn path=/head/; revision=286491
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Per rfc3629 value greater than 0x10ffff should be rejected
Suggested by: jilles
Notes:
svn path=/head/; revision=286490
|
|/
|
|
|
|
|
| |
Obtained from: Dragonfly
Notes:
svn path=/projects/collation/; revision=286459
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reduce some duplicate code.
Reference:
https://www.illumos.org/issues/628
Obtained from: Illumos
MFC after: 1 week
Notes:
svn path=/head/; revision=268272
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From the OpenBSD log:
The UTF-8 decoder should not accept byte sequences which decode to unicode
code positions U+D800 to U+DFFF (UTF-16 surrogates), U+FFFE, and U+FFFF.
http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
http://unicode.org/faq/utf_bom.html#utf8-4
Reported by: Stefan Sperling
Obtained from: OpenBSD
MFC after: 5 days
Notes:
svn path=/head/; revision=265167
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From the OpenBSD log:
The UTF-8 decoder should not accept byte sequences which decode to unicode
code positions U+D800 to U+DFFF (UTF-16 surrogates), U+FFFE, and U+FFFF.
http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
http://unicode.org/faq/utf_bom.html#utf8-4
Reported by: Stefan Sperling
Obtained from: OpenBSD
MFC after: 5 days
Notes:
svn path=/head/; revision=265095
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
Notes:
svn path=/head/; revision=227753
|
|
|
|
| |
Notes:
svn path=/head/; revision=172661
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for wide characters locales in the argument range >= 0x80 - they may
return false positives.
Example 1: for UTF-8 locale we currently have:
iswspace(0xA0)==1 and isspace(0xA0)==1
(because iswspace() and isspace() are the same code)
but must have
iswspace(0xA0)==1 and isspace(0xA0)==0
(because there is no such character and all others in the range
0x80..0xff for the UTF-8 locale, it keeps ASCII only in the single byte
range because our internal wchar_t representation for UTF-8 is UCS-4).
Example 2: for all wide character locales isalpha(arg) when arg > 0xFF may
return false positives (must be 0).
(because iswalpha() and isalpha() are the same code)
This change address this issue separating single byte and wide ctype
and also fix iswascii() (currently iswascii() is broken for
arguments > 0xFF).
This change is 100% binary compatible with old binaries.
Reviewied by: i18n@
Notes:
svn path=/head/; revision=172619
|
|
|
|
|
|
|
|
| |
111111 rather than the top 7 bits being compared against 1111110 causing
illegal bytes fe and ff being treated the same as legal bytes fc and fd.
Notes:
svn path=/head/; revision=157289
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
. Replace inclusion of sys/param.h to sys/cdefs.h and sys/types.h where
appropriate.
. move _*_init() prototypes to mblocal.h, and remove these prototypes
from .c files
. use _none_init() in __setrunelocale() instead of duplicating code
. move __mb* variables from table.c to none.c allowing us to not to
export _none_*() externs, and appropriately remove them from mblocal.h
Ok'ed by: tjr
Notes:
svn path=/head/; revision=142654
|
|
|
|
|
|
|
| |
Reviewed by: tjr
Notes:
svn path=/head/; revision=141716
|
|
|
|
|
|
|
|
|
| |
These convert plain ASCII characters in-line, making them only slightly
slower than the single-byte ("NONE" encoding) version when processing
ASCII strings.
Notes:
svn path=/head/; revision=132687
|
|
|
|
| |
Notes:
svn path=/head/; revision=131881
|
|
|
|
|
|
|
|
|
| |
low bound, and the number of bytes remaining instead of storing the
raw byte sequence and deriving them every time mbrtowc() is called.
This is much faster -- about twice as fast in some crude benchmarks.
Notes:
svn path=/head/; revision=129336
|
|
|
|
|
|
|
| |
file to avoid extern'ing them all over the place.
Notes:
svn path=/head/; revision=129153
|
|
|
|
| |
Notes:
svn path=/head/; revision=128155
|
|
|
|
|
|
|
| |
Spotted by: bde
Notes:
svn path=/head/; revision=128081
|
|
|
|
|
|
|
|
| |
objects passed to mbrtowc(), mbsrtowcs(), and mbrlen(), as required
by C99.
Notes:
svn path=/head/; revision=128004
|
|
|
|
| |
Notes:
svn path=/head/; revision=122467
|
|
|
|
|
|
|
|
|
| |
mbrtowc() and wcrtomb() directly. GB18030, GBK and UTF2 are left
unconverted; GB18030 will be done eventually, but GBK and UTF2 may just
be removed, as they are subsets of GB18030 and UTF-8 respectively.
Notes:
svn path=/head/; revision=121893
|
|
|
|
| |
Notes:
svn path=/head/; revision=111082
|
|
"UTF2" method. Although UTF-8 and the old UTF2 encoding are compatible
for 16-bit characters, the new UTF-8 implementation is much more strict
about rejecting malformed input and also handles the full 31 bit range
of characters.
Notes:
svn path=/head/; revision=104828
|