kamil
77a1ad5f00
Switch the iconv(3) prototype to the POSIX conformant variation
...
Remove const from the 2nd argument.
const char ** and char ** are incompatible types and it was a cost to keep
the technically incompatible form for a more purist variation. NetBSD was
almost the last alive OS to still keep the const argument (known leftovers:
Minix and Illumos).
Keep the const form for the internal purposes inside citrus and rump.
Address the build breakage fallout in the same change.
There are no ABI changes.
Change accepted by core@.
2019-10-24 18:17:14 +00:00
dholland
04fb430032
Save errno around fwrite(), which can otherwise trash it; PR 47813.
...
This appears to fully resolve the problem described in the PR, even
though one might think it wouldn't.
2013-10-07 02:00:46 +00:00
rodent
24964ef3d1
conform -> conforms - this is the file that was supposed to be changed.
...
apb@ was right about iconv(3).
2013-05-12 12:25:12 +00:00
yamt
29af9462d1
annotate for lint
2011-10-31 13:27:51 +00:00
joerg
6818646ac8
Use __dead
2011-09-16 15:39:25 +00:00
dholland
78dfa763ff
fix typo, from Ryo HAYASAKA in PR 44332.
2011-01-06 08:30:09 +00:00
lukem
c1ceae17f0
Enable WARNS=4 by default for usr.bin, except for:
...
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
2009-04-14 22:15:16 +00:00
yamt
99b23c11d2
on errors, output whatever we have before bailing out.
2009-02-20 15:28:21 +00:00
yamt
7abbdb7a0c
-1 -> (size_t)-1 for return values of iconv.
2009-02-20 15:27:08 +00:00
yamt
288c135080
u_int32_t -> uint32_t
2009-02-20 15:25:31 +00:00
yamt
d92af407ba
call setlocale so that nl_langinfo makes sense.
2008-03-22 10:30:21 +00:00
tnozaki
0b9f4942b6
allow SUSv3 syntax.
...
if from/to code is ommitted, auto-guess'ed from current locale.
2008-03-20 11:35:44 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
christos
cdab3a7a06
More programs using efun.
2006-08-26 18:17:41 +00:00
tshiozak
1cf148a9cc
make the error message kindly if the last character is incompleted.
...
(bin/30051)
2005-04-25 13:57:34 +00:00
christos
557621f75a
KNF, WARNS=3.
2005-04-24 17:46:06 +00:00
thorpej
f190e3a631
Fix error message when input file does not exist. From James Lowden.
2005-04-24 17:08:42 +00:00
yamt
8676c37c10
scmp: don't discard const qualifiers needlessly.
2004-12-21 11:33:07 +00:00
jdolecek
b142758840
sort iconv -l output
2004-02-21 09:16:25 +00:00
yamt
c046e5f6af
count number of invalid characters correctly.
...
ok'ed by tshiozak@.
2003-10-20 12:56:18 +00:00
wiz
7d42d8e76f
Be more verbose in error message if iconv_open fails.
2003-07-23 13:18:59 +00:00
lukem
42b4b5e4a4
<bsd.own.mk> needed before NETBSDSRCDIR is used
2003-07-10 11:21:03 +00:00
wiz
ab7901a8b6
Grammar and mdoc improvements. Sort sections. Only mention iconv(3)
...
in SEE ALSO, since iconv_open(3) and iconv_close(3) are the same.
2003-07-04 07:58:10 +00:00
tshiozak
6a491b80a2
add manpage for iconv(1).
2003-07-04 06:59:52 +00:00
tshiozak
f0108a1301
correct how to show size_t. %d -> %lu and cast to unsigned long.
...
reported by Rob Quinn.
2003-06-27 15:42:12 +00:00
tshiozak
ff5c3e6895
Citrus iconv support(4)
...
add iconv external I/F (iconv.h - iconv_open()/iconv()/iconv_close()) and
iconv(1) utility.
TODO:
- bump libc minor.
- add iconv data files.
- create manpages: iconv_open(3)/iconv(3)/iconv_close(3)/iconv(1)/
mkesdb(1)/mkcsmapper(1).
2003-06-27 05:21:49 +00:00