| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Submitted by: christoph.mallon at gmx.de
Approved by: kib (mentor)
|
|
|
|
|
|
|
|
| |
to get rid of restrict qualifier discarding. This lets libc compile
cleanly in gnu99 mode.
Suggested by: kib, christoph.mallon at gmx.de
Approved by: kib (mentor)
|
|
|
|
|
|
|
| |
PR: 74743
Submitted by: knut st. osmundsen
Approved by: rwatson (mentor)
MFC after: 1 month
|
|
|
|
|
| |
inside _<encoding>_init().
Currently _EUC_init() only was affected.
|
|
|
|
| |
on unknown encoding. Previous fix resets it to POSIX.
|
|
|
|
|
| |
2) Fix longstanding segfault in mb/wc code when unknown encoding is specified
in the locale file (mb/wc functions becomes NULL in that case).
|
|
|
|
|
| |
It differs from default C/POSIX "NONE" mainly by stricter 8bit check
for mb*towc*/wc*tomb* family, returning EILSEQ
|
|
|
|
| |
Per request of: glenn halperin at symbian.com
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
| |
Approved by: keramida (mentor)
MFC after: 3 days
|
| |
|
|
|
|
|
|
| |
clause.
# If I've done so improperly on a file, please let me know.
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FBSDprivate locale symbols. These functions are needed by
libcompat.
Add _cleanup to the list of stdio FBSDprivate symbols. Some
third party applications use this. This will be removed and
replaced by fcloseall() once libc version is bumped.
Add _res to the list of resolv symbols.
Found by: portbuilder runs (thanks Kris!)
|
| |
|
|
|
|
| |
Reviewed by: davidxu
|
| |
|
|
|
|
| |
the function definition.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
functions and must now be either an unsigned char or EOF, regardless of
locale.
|
|
|
|
|
| |
and toupper() must now be either an unsigned char or EOF, regardless of
locale.
|
|
|
|
| |
Suggested by: phantom
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
. 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
introducing the disk formats for _RuneLocale and friends.
The disk formats do not have (useless) pointers and have 32-bit
quantities instead of rune_t and long. (htonl(3) only works
with 32-bit quantities, so there's no loss).
Bootstrap mklocale(1) when necessary. (Bootstrapping from 4.x
would be trivial (verified), but we no longer provide pre-5.3
source upgrades and this is the first commit to actually break
it.)
|
|
|
|
| |
Reviewed by: tjr
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
GNU) for determining whether a string is an affirmative or negative
response to a question according to the current locale. This is done
by matching the response against nl_langinfo(3) items YESEXPR and NOEXPR.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
"obsolete" instead of "deprecated".
|
| |
|
|
|
|
| |
"obsolete" instead of "deprecated".
|
|
|
|
| |
to "obsolete".
|
|
|
|
|
| |
describe the 4.4BSD extension of accepting characters (runes) outside of
the range of unsigned char.
|
|
|
|
|
|
|
| |
Revert previous commit, tjr already fixed it and I was too stupid to
notice this fact.
Approved by: re (to avoid failing cvs ci)
|
|
|
|
|
|
|
|
|
|
| |
19 column positions wide in the first line and 20 in the rest of the lines.
This fixes the example to provide the correct output.
PR: 53454
Noticed by: Kuang-che Wu <kcwu@kcwu.homeip.net>
Submitted by: Marc Silver <marcs@draenor.org>
Approved by: re (scottl)
|
| |
|
| |
|