Commit Graph

6943 Commits

Author SHA1 Message Date
Tim Kientzle
b3ea6ecd42 Validate -o usage. Strictly speaking, -o only makes sense with -x,
of course, but I make an effort to accomodate GNU tar scripts that
use -o with -c (with a meaning that totally contradicts SUSv2) by
only issuing a benign warning message in that case.
2004-07-17 04:17:50 +00:00
Tim J. Robbins
70ad92ab84 Mention in the BUGS section that write and wall bogusly use the sender's
LC_CTYPE setting instead of the receiver's when determining which
characters are printable.
2004-07-17 04:15:27 +00:00
Tim J. Robbins
3d1a01487a Document incorrect handling of multibyte characters. 2004-07-17 04:04:30 +00:00
Tim J. Robbins
e4d0177f50 Document the limitation that multibyte characters cannot be used as
delimiters with the 's' and 'y' commands.
2004-07-17 03:37:31 +00:00
Johan Karlsson
7eaedc0cd3 Include <string.h> to get memset and strcmp prototype.
Sort includes.

This is now WARNS=2 clean, bump WARNS to keep it clean.
2004-07-16 11:07:07 +00:00
Tim J. Robbins
507e8f1644 Add support for multibyte characters. 2004-07-16 06:21:40 +00:00
Tim J. Robbins
911a3ff97b Avoid passing negative values to <ctype.h> functions on machines with
signed chars.
2004-07-16 05:10:46 +00:00
Tim J. Robbins
f1f7aaab59 Document incorrect handling of multibyte characters. 2004-07-16 05:08:16 +00:00
Tim J. Robbins
37ec0e95b3 Document incorrect handling of multibyte characters. 2004-07-15 11:10:09 +00:00
Tim J. Robbins
a2b28f9d9a Avoid passing negative values to isdigit() on machines with signed chars. 2004-07-15 10:26:38 +00:00
Tim J. Robbins
de3b3c0e74 Avoid passing negative values to isspace() on machines with signed chars. 2004-07-15 09:23:04 +00:00
Tim J. Robbins
e781c653dd Respect locale settings from the environment. 2004-07-15 08:54:41 +00:00
Tim J. Robbins
80209ec51c Avoid passing negative values to isspace() on systems with signed chars. 2004-07-15 08:27:04 +00:00
Tim J. Robbins
4ff2396545 Respect locale settings from the environment. 2004-07-15 08:13:56 +00:00
Tim J. Robbins
fe1ba53cff Don't pass negative values into <ctype.h> functions on machines
with signed chars.
2004-07-15 07:33:56 +00:00
Tim J. Robbins
ee6b783c62 Print size_t with %zu, not %d. 2004-07-15 07:30:15 +00:00
Tim J. Robbins
c5453cb4db Respect locale settings from the environment. 2004-07-15 07:26:20 +00:00
Tim J. Robbins
be12aba0e0 Add incorrect multibyte character handling to the already long list
of bugs.
2004-07-15 06:59:34 +00:00
Tim J. Robbins
c7fcd3025b Use freopen() instead of a nasty hack. 2004-07-15 06:57:36 +00:00
Tim J. Robbins
d1573e5841 Document incorrect handling of multibyte characters. 2004-07-15 06:43:52 +00:00
Tim J. Robbins
5d8c7c7ed6 Ensure that suffix matches occur on character boundaries. 2004-07-15 06:15:10 +00:00
Tim J. Robbins
8a68dbeb38 Document line length and multibyte character limitations. 2004-07-15 05:12:04 +00:00
Tim J. Robbins
d88ccf5dca Use err() instead of perror(), exit(). 2004-07-15 04:56:41 +00:00
Tim J. Robbins
208f2fd1ed Use warn() instead of perror(). 2004-07-15 04:51:21 +00:00
Tim J. Robbins
7bd73b069c Use warn() instead of perror(). 2004-07-15 04:45:24 +00:00
Tim Kientzle
b9916968df Make the day/month ordering dependent on the current locale by
testing the locale at program startup and setting a flag, then
using that flag to determine appropriate strftime() arguments.
2004-07-15 03:14:46 +00:00
Tim J. Robbins
220d8b581a Document the -E and -a options as being extensions. 2004-07-14 10:37:21 +00:00
Tim J. Robbins
8b086367a0 Update BUGS section to reflect current state of multibyte character support. 2004-07-14 10:33:29 +00:00
Tim J. Robbins
81a8648adb Make the 'y' (translate) command aware of multibyte characters. 2004-07-14 10:06:22 +00:00
Tim J. Robbins
c75b843169 Fix description of cmap_lookup_hard(). 2004-07-14 08:36:09 +00:00
Tim J. Robbins
9aed43ae23 Remove unused member of struct csclass: csc_value. 2004-07-14 08:35:11 +00:00
Tim J. Robbins
cfab3bdd89 Splay the left and right subtrees on min - 1 and max + 1, respectively,
before trying to coalesce. Forgetting to splay caused us to miss many
opportunities for coalescing.
2004-07-14 08:33:14 +00:00
Tim J. Robbins
b4828720f7 Overhaul lputs() to deal with multibyte characters, characters that take
up more than one column position, and null bytes.
2004-07-13 04:35:43 +00:00
Tim J. Robbins
33ec7f265b Add support for multibyte characters. 2004-07-13 02:18:21 +00:00
Robert Watson
22c1471434 Teach gcore about the pathname field of '/proc/*/map' so that it doesn't
spin when its parser gets confused by a lack of end-of-line.

Submitted by:	Dan Nelson <dan@dan.emsphone.com>
PR:		68839
2004-07-12 20:19:40 +00:00
Tim Kientzle
8d49c1a85c Mimic ls(1) by putting an extra space before the year in old dates 2004-07-12 13:15:13 +00:00
Tim Kientzle
3481100baf Fix tab/space screwup in long_help() 2004-07-12 13:13:42 +00:00
Tim J. Robbins
2a573a0ebf Remove BUGS section that talked about missing multibyte character support.
We have support now that the regular expression routines do.
2004-07-12 10:17:02 +00:00
Dag-Erling Smørgrav
9b30d69710 Adjust the show_self code (the test got inadvertantly reversed a couple of
revisions ago)

Submitted by:	Alex Vasylenko <lxv@omut.org>
2004-07-12 08:22:32 +00:00
Alfred Perlstein
98c151d6d9 Cache a pointer to the old proc (as well as negative cache) to make
computing the io statistics over and over not as expensive.
This is a bit of a cop out, as I should just allocate a struct with
the computed values, but this will do for now.
2004-07-12 04:55:07 +00:00
Tim J. Robbins
f58b94cba4 Call setlocale() with category LC_ALL instead of LC_MESSAGES. We need
LC_CTYPE and LC_COLLATE to correctly interpret regular expressions
returned by nl_langinfo(YESEXPR), and it doesn't hurt to include the
rest.
2004-07-12 04:18:44 +00:00
Tim J. Robbins
338b72d96e Respect locale settings from the environment. 2004-07-12 02:48:40 +00:00
Stefan Farfeleder
70c3c978b9 Fix a few cases that relied on 'implicit int' (constraint violation in C99). 2004-07-11 17:37:33 +00:00
Tim J. Robbins
cd2890d712 Fix document year.
Noticed by:	simon
2004-07-11 15:04:16 +00:00
Tim J. Robbins
5c9fc89962 Add fairly standard ENVIRONMENT and DIAGNOSTICS sections. 2004-07-11 14:47:32 +00:00
Tim J. Robbins
0742d4ed1a Respect locale settings from the environment. 2004-07-11 14:44:23 +00:00
Tim J. Robbins
40ccfb3137 Add POSIX-style support for multibyte characters to od(1): the 'c'
conversion interprets input bytes as multibyte sequences and displays
printable characters in the area corresponding to their first byte.
The remaining bytes are shown as "**".
2004-07-11 01:11:12 +00:00
Tim J. Robbins
ee38feb205 Add a reference to od(1). 2004-07-10 13:11:00 +00:00
Alfred Perlstein
fde3a7d1e9 Decode the "wence" arg to lseek and linux_lseek. 2004-07-10 09:23:53 +00:00
Tim J. Robbins
9c8fd487a5 Initialize cs_invert to "false" in new csets. 2004-07-10 06:28:18 +00:00