tnozaki
73651b99df
add _CTYPE_R(printable) bit for ALL_80_TO_FF_SW1 area.
...
now wcwidth(wc) looks whether wc is printable or not.
2008-08-12 21:25:31 +00:00
tnozaki
b5174f925f
SUSv3 says, wcwidth(wc) returns:
...
1) wc is nul wide-character, return 0.
2) wc is printable wide-character, return column width.
3) else, return -1.
but our implementation, case 3) returns 0. it's wrong!
2008-08-12 20:51:25 +00:00
gmcgarry
99f83f7619
Nuke __strong_alias() to avoid definition loop.
2008-07-08 00:23:28 +00:00
ginsbach
0f112a8437
The category LC_MESSAGES is already a directory possibly containing
...
gencat(1) generated message catalogs. Make sure that it is handled
properly. (I missed this previously.)
Add some additional sanity checks on the locale path as the value may
come from the envrionment.
2008-06-12 20:33:23 +00:00
ginsbach
bcd54758b8
Add support for additional locale categories: LC_MESSAGES, LC_MONETARY,
...
LC_NUMERIC.
The code used to load LC_TIME was refactored in to a more general routine.
This common routine is now used to load LC_TIME along with the newly added
categories.
Changes discussed with/reviewed by christos.
2008-05-17 03:49:54 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
christos
eaacd42b0f
I don't see why we need to strong alias those. Nothing else does it.
2008-04-25 16:43:00 +00:00
drochner
b5e4e50433
remove stale declarations
2008-04-01 19:19:33 +00:00
tnozaki
47d7f820fd
bin/38047 fix bad prototype for function mbrlen
...
reported by cheusov AT tut DOT by, thanks!
2008-02-28 19:36:51 +00:00
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