Commit Graph

272 Commits

Author SHA1 Message Date
martin c607cb216f Mark the characters between 0x80 and 0xff as 1 cell wide, if compiled
with ALL_80_TO_FF_SW1 defined. This is not correct in the general case,
but helps in certain restricted environments where nothing but the
default locale is available and we know what we do(tm).
2007-11-06 19:24:19 +00:00
tnozaki fc34dcfbb7 s/__attribute__((__packed__))/__packed/g; 2007-09-29 08:10:17 +00:00
tnozaki 059d600590 1. add workaround for ctype.h is* funcs problem.
isspace((int)0xA0) should return false under LC_CTYPE=en_US.UTF-8,
   see: http://www.freebsd.org/cgi/query-pr.cgi?pr=116363&cat=gnu
2. change __runtable_to_netbsd_ctype() as reentrant.

patch ok'ed by tshiozak-san, thanks!
2007-09-29 07:55:45 +00:00
drochner dce09ea075 clean up some definitions around rune_t which are not needed anymore 2007-09-03 20:31:56 +00:00
christos f65c16a601 forgot include namespace.h 2007-07-19 12:05:42 +00:00
tnozaki ec36328c0e s/approprate/appropriate/ 2007-05-26 13:14:13 +00:00
tnozaki dddcbe5bf3 s/preposturously/preposterously/ 2007-05-21 15:32:17 +00:00
tnozaki 20e197918c s/conform/conforms/ 2007-05-21 15:29:51 +00:00
tnozaki 080f488178 s/wcttype/wctype/ 2007-05-21 15:20:40 +00:00
christos 79fa594887 Coverity CID/4454: Avoid double fclose. 2007-04-04 21:54:45 +00:00
manu 7e349f87af Add support for LC_TIME, from Joachim Kuebart, through PR lib/10877 2007-03-28 19:05:47 +00:00
hubertf dafcd17c49 Remove a bunch of unneeded #include <ctype.h>s
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 00:12:23 +00:00
wiz 0e1939cec0 Add missing n. From jmc@openbsd. 2007-02-20 08:33:25 +00:00
hubertf 55ac93d329 Remove more duplicate #includes, and a few spurious whitespaces at EOL
From Slava Semushin <slava.semushin@gmail.com>
2007-01-17 23:24:22 +00:00
wiz fef6221a07 Hyphenate nul-terminate. 2006-10-16 09:10:40 +00:00
wiz d65511ddb3 Mark up NULL. 2006-10-16 09:10:29 +00:00
wiz aba3ac5c73 kleink reminded me in a friendly way that "NULL" is the C API
synonyme for a "null pointer" and that there is no "NULL pointer".
2006-10-16 08:42:16 +00:00
christos a8756e84f2 prevent empty else. 2006-10-15 16:14:08 +00:00
wiz f80b348714 Consistency: NULL pointer, but nul character. 2006-10-14 07:51:01 +00:00
wiz 641d5b8a5c nul, not null (for the character). 2006-10-14 07:44:58 +00:00
tnozaki 65b88fc7e0 PR/30809 added manpages of wcswcs(3) and wcscoll(3), wcsxfrm(3)
(wcs?width and wprintf are already in repository).
2006-10-13 17:28:09 +00:00
tnozaki dbae970b16 use wcstombs/mbstowcs instead of wcsrtombs/mbsrtombs
for performance of non-C/POSIX locale.
2006-10-04 14:19:16 +00:00
wiz ffda6b7e64 Bump date for previous. 2006-08-08 17:32:56 +00:00
wiz e003ee3619 Add RCS Id. 2006-08-08 17:32:05 +00:00
wiz 81b12ac32b Quote some characters for HTML output. 2006-08-08 17:31:35 +00:00
tnozaki 8d8d8b951d - wcstombs.3
correct wrong prototype,
    reported by OpenBSD's PR 5171/library.
- wcsrtombs.3
    correct wrong prototype and misusage of the header file.
2006-08-08 17:14:05 +00:00
tnozaki a55e9cdf1a fix lib/33476:
added following manpages (derived from FreeBSD),
    wcwidth(3) wcswidth(3)
    wcstol(3) wcstoll(3) wcstoimax(3)
    wcstoul(3) wcstoull(3) wcstoumax(3)
  and update doc/TODO.i18n.
2006-06-03 04:36:43 +00:00
wiz e29be3b11f Some serial commas. 2006-04-23 16:44:00 +00:00
wiz bb197ac232 We are not NeyBSD. 2006-04-23 16:43:10 +00:00
christos 2c277d7a8d namespace protect wcstod too, and fix the protection in wcstold and wcstof. 2006-04-16 17:03:32 +00:00
tnozaki 2771536f25 for compiling problems, remove wcstod -> wcstold weak ref.
noticed by Mr, Matt Fleming and Tsutsui-san, thanks.
2006-04-16 16:34:20 +00:00
tnozaki 96c958955a wcstod(3) is conform to ISO C90 Ammendant1 (FreeBSD's manpage is incorrect...).
don't __weak_alias'ize it and fix manpage.
2006-04-15 15:34:34 +00:00
tnozaki f9de1ba57e add c99 wcstof(3) and wcstold(3).
requested by skrll AT netbsd DOT org, thanks.

bump libc minor 138 -> 139.
2006-04-15 12:17:22 +00:00
tnozaki 9d0aec986d replaced by FreeBSD version wcstod(3) for make it work
with L"inf", L"nan", and hex conversion.
suggested by jeorg AT netbsd DOT org, thanks.
2006-04-13 01:25:13 +00:00
tnozaki 08db232b12 completely broken, make it works. 2006-04-11 14:24:37 +00:00
christos 359eb8d732 Coverity CID 571: Remove dead code. 2006-03-19 02:54:38 +00:00
christos 39ff648553 Coverity CID 778: Avoid NULL deref. 2006-03-19 02:44:27 +00:00
tnozaki f87e6eb1f0 make "locale -a" read locale.alias file. 2006-02-16 19:19:49 +00:00
yamt 6efd91c498 constify and remove an __UNCONST. 2005-12-02 11:10:45 +00:00
christos 03256c6e55 WARNS=4 2005-11-29 03:11:58 +00:00
christos 0ea555f2ce It is bogus to return EFAULT in userland. 2005-10-19 22:57:03 +00:00
wiz 2c320bdf02 Use backslash+e for a literal backslash. 2005-10-03 19:20:53 +00:00
gdt 13d60a911d Escape backslash (in \n) in example program so that it appears
correctly in formatted output.  Now the example program can be
cut/pasted/compiled.
2005-10-02 14:24:41 +00:00
wiz 0fd61eded9 Fix pasto, noted by Marc Espie. 2005-06-27 14:18:36 +00:00
lukem 88c3eadbfa Add missing __RCSID() 2005-06-12 05:21:25 +00:00
kleink fb4f51453b Add some pedantry to exceptions from being equivalent to strftime. 2005-04-06 21:39:17 +00:00
wiz 215d79769a Add man page for wcsftime from FreeBSD. 2005-03-30 10:15:12 +00:00
christos eb808713b7 PR/29826: J. T. Conklin: Add wcsftime(3) (from FreeBSD) 2005-03-30 03:47:11 +00:00
tnozaki 7aab8c378d considering huge character set(ucs, gb18030),
use not linear but binary search.
this change derrived from recent FreeBSD's rune.
2005-02-10 19:19:57 +00:00
kleink fd5cb0acea A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
  fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
  uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.
2005-02-09 21:35:46 +00:00