NetBSD/usr.bin
kim dfb75c5ad4 Add back locale support for data display.
We only enable 8-bit output for known single-byte locales, currently
ISO8859-*.  For all other locales the program output is unchanged.

RFC-1288 recommends that administrators have a mechanism to enable
characters greater than ASCII 126.  A suggested solution is an
environment variable.  The environment variables of choice here are
LC_CTYPE and LANG.

Thanks to Martin Husemann <martin@duskware.de> for the idea on checking
for known single-byte locales, to Johan Danielsson <joda@pdc.kth.se> for
checking RFC-1288, and to Jun-ichiro itojun Hagino <itojun@iijlab.net>
for insisting on retaining security for multi-byte locales.

If you experience any problems with these changes, please send me email
describing the problem and how to repeat it.  I'd rather try to fix the
problem than have this change reverted.  Thanks!
2002-09-10 03:02:40 +00:00
..
apply Fix section names, sort sections, remove a space. 2001-10-17 22:02:30 +00:00
apropos cleanup TAILQ use 2002-06-11 07:17:15 +00:00
asa Write a program straightforward. 2002-05-30 00:34:06 +00:00
at don't include utmp.h 2002-08-01 22:39:14 +00:00
audio + rephrase a bunch of stuff 2002-09-02 04:40:03 +00:00
awk Correct a couple of typos. 2002-05-15 19:00:32 +00:00
banner Whitespace cleanup. 2001-12-01 16:43:07 +00:00
basename Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
bdes Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
biff Whitespace cleanup. 2001-12-01 16:43:07 +00:00
bzip2 Implement MKDYNAMICROOT, which currently defaults to "no", but will 2002-08-27 14:46:11 +00:00
bzip2recover Implement MKDYNAMICROOT, which currently defaults to "no", but will 2002-08-27 14:46:11 +00:00
cal Use a slightly more standard section header. 2002-06-23 00:22:56 +00:00
calendar Comiskey Park was the host of the Disco Demolition in 1979. Home of the 2002-07-12 13:42:06 +00:00
cap_mkdb Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
cdplay err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
checknr Document basic mdoc(7) support, and some fixes. 2002-01-21 18:36:44 +00:00
chflags Align default behaviour of chmod, chgrp, chown, and chflags with symlink(7), 2002-07-07 11:44:02 +00:00
chpass Make this compiles again when compiled without YP. 2002-08-16 01:06:28 +00:00
cksum Protect __RCSID and __COPYRIGHT from being invoked if not defined. 2002-03-31 14:43:22 +00:00
cmp Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
col Whitespace cleanup. 2001-12-01 16:43:07 +00:00
colcrt Sort sections, sort SEE ALSO. 2001-12-01 18:57:03 +00:00
colrm Whitespace cleanup. 2001-12-01 16:43:07 +00:00
column Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
comm Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
compile_et Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly). 2001-12-12 12:24:19 +00:00
compress ANSIfy. 2002-05-26 22:25:38 +00:00
crontab
crunch - move LDSTATIC=-static to the bottom, so that "LDSTATIC=" in /etc/mk.conf 2002-08-20 01:52:58 +00:00
ctags Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
cut err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
dirname MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
du Use standard headers. 2001-12-01 19:03:31 +00:00
eject Whitespace fixes and formatting improvements. 2001-10-06 18:51:04 +00:00
elf2aout Build elf2aout on m68000. 2002-03-22 00:17:56 +00:00
elf2ecoff Proper usage of HAVE_CONFIG_H. 2002-04-25 18:16:49 +00:00
env Punctuation nit. 2001-12-01 19:07:26 +00:00
error Remove #ifndef'd __STDC__ code. ANSIfy. 2002-05-26 22:41:20 +00:00
expand
false Minor fixes. 2001-06-05 11:40:04 +00:00
fdformat acorn32 and cats get fdformat. 2002-02-11 18:55:11 +00:00
fgen sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:40:16 +00:00
file calloc() arg mistake. it's (nelem, size). from openbsd 2002-08-12 02:40:20 +00:00
find Use LOGIN_NAME_MAX instead of UT_NAMELEN 2002-08-01 22:41:34 +00:00
finger Add back locale support for data display. 2002-09-10 03:02:40 +00:00
fmt WARNS=2. 2002-03-02 14:02:23 +00:00
fold Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
fpr Rename local function "gettext" to "get_text" to avoid conflict 2002-05-30 17:46:24 +00:00
from Whitespace cleanup. 2001-12-01 16:43:07 +00:00
fsplit Whitespace cleanup. 2001-12-01 16:43:07 +00:00
fstat Add an extra column for inode numbers, and pull back the mode field to 2002-02-12 03:28:20 +00:00
ftp Add a -q <quit-time> flag to abort a transfer if it has stalled for <quit-time> 2002-08-27 13:11:02 +00:00
gencat ... and in NetBSD-current, <netinet/in.h> needs <sys/types.h>. 2002-04-24 22:44:40 +00:00
getconf Fix typo in last commit. 2002-08-05 06:35:44 +00:00
getopt Sort sections, use standard headers. 2001-12-01 19:20:32 +00:00
gprof
head Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
hesinfo Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
hexdump err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
id Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
indent Remove #ifndef'd __STDC__ code. ANSIfy. 2002-05-26 22:53:38 +00:00
innetgr Whitespace cleanup. 2001-12-01 16:43:07 +00:00
ipcrm Add Xrefs to shm*(2). 2002-06-16 22:43:30 +00:00
ipcs Add Xrefs to shm*(2). 2002-06-16 22:43:30 +00:00
join finish fixing PR#15412 2002-07-24 17:03:00 +00:00
jot Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
kdestroy Remove -I${DESTDIR}/usr/include/openssl from CPPFLAGS; it's unnecessary, 2001-12-31 19:24:12 +00:00
kdump Implement MKDYNAMICROOT, which currently defaults to "no", but will 2002-08-27 14:46:11 +00:00
kf Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly). 2001-12-12 12:24:19 +00:00
kinit Remove -I${DESTDIR}/usr/include and -I${DESTDIR}/usr/include/openssl from 2001-12-31 19:25:36 +00:00
klist Remove -I${DESTDIR}/usr/include and -I${DESTDIR}/usr/include/openssl 2001-12-31 19:26:59 +00:00
kpasswd Remove -I${DESTDIR}/usr/include and -I${DESTDIR}/usr/include/openssl 2001-12-31 19:26:59 +00:00
ktrace Implement MKDYNAMICROOT, which currently defaults to "no", but will 2002-08-27 14:46:11 +00:00
ktruss Implement MKDYNAMICROOT, which currently defaults to "no", but will 2002-08-27 14:46:11 +00:00
lam Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
last Include -T in the synopsis. 2001-08-21 23:55:25 +00:00
lastcomm Improve markup a bit. Add section to xref. 2001-04-04 09:37:19 +00:00
ldd Implement MKDYNAMICROOT, which currently defaults to "no", but will 2002-08-27 14:46:11 +00:00
leave Drop unnecessary .Pp, no trailing dots in SEE ALSO, please, and sort sections. 2002-01-21 11:42:55 +00:00
less Remove !__STDC__. 2002-06-15 18:27:20 +00:00
lex Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
locate Quote $FILELIST and $BIGRAMS consistently. Especially the latter 2002-05-05 07:27:35 +00:00
lock Split the notion of building Hesiod, Kerberos, S/key, and YP 2002-03-22 18:10:19 +00:00
logger Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
login remove debugging message leftover 2002-07-30 14:37:38 +00:00
logname Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
look Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
lorder Send error messages to stderr rather than stdout. 2002-05-12 09:01:45 +00:00
m4 Really fix -P. 2002-05-02 14:24:06 +00:00
machine
mail calloc() arg mistake. it's (nelem, size). from openbsd 2002-08-12 02:40:20 +00:00
make End some sentences with a dot. bin/17987 by Julio Merino. 2002-08-19 11:14:23 +00:00
man Remove unneeded Ns. 2002-08-20 15:20:33 +00:00
menuc Correct `.Na' misuses reported in bin/17007, and some other mandoc improvements 2002-05-24 22:09:20 +00:00
mesg Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
midiplay err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
mixerctl Use _PATH_SOUND etc, all fall back to _PATH_SOUND0 (etc.) if that fails. 2002-01-31 00:03:23 +00:00
mk_cmds Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly). 2001-12-12 12:24:19 +00:00
mkdep Split out the findcc() function that tries to determine the path to 2002-06-14 23:14:18 +00:00
mkfifo Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
mklocale Include <arpa/inet.h> for ntohl and htonl on POSIX systems. 2002-04-26 18:04:58 +00:00
mkstr Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
mktemp On second thoughts, don't make mktemp a host tool. It's only used once, for 2002-04-01 13:54:00 +00:00
modstat Sort sections, sort SEE ALSO, use standard headers, mdocify AUTHORS section. 2001-12-01 20:43:06 +00:00
msgc Roll in fixes to permit cross-compiling from non-NetBSD hosts. This 2002-01-31 22:43:33 +00:00
msgs Punctuation nit, sort SEE ALSO. 2001-12-01 20:44:29 +00:00
netgroup Whitespace cleanup. 2001-12-01 16:43:07 +00:00
netstat Add more software intrq. 2002-07-23 23:34:39 +00:00
newsyslog don't let newsyslog follow symlink (could be abused to do tricks). 2002-06-27 03:10:15 +00:00
nfsstat Change xref for vmstat(8) to vmstat(1). 2001-05-06 23:48:31 +00:00
nice Punctuation nit. 2001-12-08 19:09:35 +00:00
nl Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
nohup Sort sections. 2001-12-08 19:09:57 +00:00
openssl e_os.h is not part of exported openssl interface, so don't install it into 2002-08-31 10:46:36 +00:00
pagesize
passwd use arc4random 2002-05-28 11:19:17 +00:00
paste Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
patch Handle patches in which diff(1) has added lines saying 2002-03-24 01:56:20 +00:00
pkill - System processes will never be matched. 2002-03-06 12:03:48 +00:00
pmap Unterminated comment. Grr... 2002-09-01 20:37:28 +00:00
pmc Some more Athlon counter names. 2002-06-07 05:26:45 +00:00
pr Correct spelling of "delimiter", and remove from ignored-errors lists. 2002-02-26 02:37:28 +00:00
printenv
printf Complete declaration of progprintf() to fix build problem in csh(1). 2002-06-14 11:32:15 +00:00
qsubst The tputs() print char function needs to return an int. 2001-04-22 05:35:35 +00:00
quota Sort sections. 2001-12-08 19:10:54 +00:00
radioctl Make flag parsing work. Print more capabilities. 2002-01-03 18:23:09 +00:00
rdist Remove #if __STDC__. De-__P() and ANSIfy. 2002-06-14 01:18:54 +00:00
renice Sort sections. 2001-12-08 19:11:33 +00:00
rev
rlogin Remove #ifdef __STDC__. De-__P() and ANSIfy. 2002-06-14 00:55:47 +00:00
rpcgen err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
rpcinfo Minor nroff formatting fixes per PR 13800 2002-01-13 07:15:50 +00:00
rs err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
rsh Remove #ifdef __STDC__. De-__P() and ANSIfy. 2002-06-14 00:51:04 +00:00
rup Use standard headers, punctuation nit. 2001-12-08 19:13:08 +00:00
ruptime
rusers Separate xrefs by a comma. 2001-12-08 19:13:31 +00:00
rwall Punctuation nit. 2001-12-08 19:13:43 +00:00
rwho add section to xref. 2001-04-04 09:44:08 +00:00
script Add an alternate "typescript mode" that contains timestamps and other 2002-06-21 18:46:31 +00:00
sed Remove #if __STDC__. De-__P() and ANSIfy. 2002-06-14 00:41:42 +00:00
shar Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
shlock Remove __STDC__ #ifdefs. De-__P. ANSIfy. 2002-06-14 00:34:58 +00:00
showmount Sort sections. 2001-12-08 19:15:12 +00:00
shuffle Clarify input source. Drop a duplicate .Pp while I am here. 2002-03-05 15:06:16 +00:00
skey Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
skeyinfo Fix date. 2001-04-09 12:33:50 +00:00
skeyinit use LOGIN_NAME_MAX not UT_NAMELEN. 2002-08-01 22:43:34 +00:00
soelim Sort sections. 2001-12-08 19:15:45 +00:00
sort Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
split Sort sections. 2001-12-08 19:16:19 +00:00
ssh Don't set BINOWN if using the default BINMODE. 2002-08-02 04:05:13 +00:00
stat Use limits.h instead of sys/syslimits.h since it's more potrable. 2002-08-13 20:15:06 +00:00
string2key no need for -I/usr/include/openssl (in fact, it is discouraged) 2002-08-29 14:35:45 +00:00
su err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
systat introduce puthumanint() which calls humanize_number(), and use to 2002-08-08 17:06:31 +00:00
tail Remove #if __STDC__. De-__P() and ANSIfy. 2002-06-14 00:41:42 +00:00
talk Drop a .Pp, sort sections. 2001-12-08 19:17:46 +00:00
tcopy
tee Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
telnet Fix typo. 2002-08-23 10:39:46 +00:00
tftp Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
time modernize: 2002-07-16 15:41:57 +00:00
tip s/appeared command/command appeared/ 2002-05-03 22:43:59 +00:00
tn3270 Remove #if !__STDC__ code. While here, de-__P(). 2002-06-13 23:41:15 +00:00
top Fix segv when running show_help. 2002-08-02 20:03:36 +00:00
touch Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
tput Sort sections. 2001-12-08 19:19:05 +00:00
tr Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
true Fix nits, sort SEE ALSO. 2001-06-05 12:01:33 +00:00
tset Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
tsort Roll in fixes to permit cross-compiling from non-NetBSD hosts. This 2002-01-31 22:43:33 +00:00
tty Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
ul Sort sections. 2001-12-08 19:19:41 +00:00
uname Whitespace cleanup. 2001-12-01 16:43:07 +00:00
unexpand MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
unifdef Sort sections. 2001-12-08 19:19:41 +00:00
uniq Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
units Remove bogus output of '\n' when using -q. 2002-08-31 07:26:17 +00:00
unvis
usbhidaction err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
usbhidctl Prefix structure members to protect them against clashes with eg. c++ keywords. 2002-02-20 20:30:12 +00:00
users utmpx support 2002-08-01 23:51:20 +00:00
uudecode correct misuse of warnx, which leads to non-informative error 2002-06-29 17:58:50 +00:00
uuencode Fix mistake in algorithm description. 2002-08-06 15:26:04 +00:00
vacation Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
vgrind have bsd.endian.mk, which detects target endian. 2002-05-30 21:40:47 +00:00
vi add ${MACROS} to roff call to make output paper readable 2002-08-13 20:07:31 +00:00
vis
vmstat Print newline before pool stats. 2002-08-10 19:08:41 +00:00
w fixed user miscounting. reported by kim. 2002-08-22 14:52:55 +00:00
wall defend against malicious line in ut_line, which could cause unwanted 2002-08-16 20:21:48 +00:00
wc Mention -m in usage. bin/16594 by Ryan Younce. 2002-05-02 13:07:13 +00:00
what Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
whatis cleanup TAILQ use 2002-06-11 07:17:15 +00:00
whereis err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
which Match braces. Patch from misc/14925 by Hiramatsu Yoshifumi. 2001-12-12 16:03:15 +00:00
who make this compile with either utmp or utmpx there. 2002-08-01 23:51:42 +00:00
whois Remove some STDC ifdefs, and some code that's for non-NetBSD systems. 2002-06-13 23:26:43 +00:00
window calloc() arg mistake. it's (nelem, size). from openbsd 2002-08-12 02:40:20 +00:00
write defend against malicious line in ut_line, which could cause unwanted 2002-08-16 20:21:48 +00:00
xargs Remove mention of -I in SYNOPSIS until we've actually implemented it. 2002-01-28 13:49:49 +00:00
xinstall Convert from flock() to the more portable fcntl(). 2002-06-09 04:16:39 +00:00
xlint sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:40:16 +00:00
xstr Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
yacc In the generated C file, don't assume that <sys/cdefs.h> exists. Instead, 2002-01-31 21:01:15 +00:00
yes
ypcat Punctuation nit, sort SEE ALSO, mark up AUTHORS section. 2001-12-08 19:28:41 +00:00
ypmatch Punctuation nit, sort SEE ALSO, mark up AUTHORS section. 2001-12-08 19:28:41 +00:00
ypwhich err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
Makefile Move pmap(1) to /usr/bin (from /usr/sbin) where it belongs. 2002-09-01 20:32:43 +00:00
Makefile.inc