johan
bc489758c0
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
tjr
8d7b06e962
Add support for multibyte characters.
2004-07-16 06:21:40 +00:00
tjr
512d638b01
Avoid passing negative values to <ctype.h> functions on machines with
...
signed chars.
2004-07-16 05:10:46 +00:00
tjr
b14b0e3eb8
Document incorrect handling of multibyte characters.
2004-07-16 05:08:16 +00:00
tjr
1257bb0d63
Document incorrect handling of multibyte characters.
2004-07-15 11:10:09 +00:00
tjr
62ca3fc301
Avoid passing negative values to isdigit() on machines with signed chars.
2004-07-15 10:26:38 +00:00
tjr
74042ab74b
Avoid passing negative values to isspace() on machines with signed chars.
2004-07-15 09:23:04 +00:00
tjr
c63c3a56b8
Respect locale settings from the environment.
2004-07-15 08:54:41 +00:00
tjr
21f820d4c3
Avoid passing negative values to isspace() on systems with signed chars.
2004-07-15 08:27:04 +00:00
tjr
a2ba9d448d
Respect locale settings from the environment.
2004-07-15 08:13:56 +00:00
tjr
fccee4f3c3
Don't pass negative values into <ctype.h> functions on machines
...
with signed chars.
2004-07-15 07:33:56 +00:00
tjr
35c40abaac
Print size_t with %zu, not %d.
2004-07-15 07:30:15 +00:00
tjr
cc381691c4
Respect locale settings from the environment.
2004-07-15 07:26:20 +00:00
tjr
8529e351cd
Add incorrect multibyte character handling to the already long list
...
of bugs.
2004-07-15 06:59:34 +00:00
tjr
4d0f381593
Use freopen() instead of a nasty hack.
2004-07-15 06:57:36 +00:00
tjr
7b1443b6d7
Document incorrect handling of multibyte characters.
2004-07-15 06:43:52 +00:00
tjr
fdd18f5e83
Ensure that suffix matches occur on character boundaries.
2004-07-15 06:15:10 +00:00
tjr
51777f0d81
Document line length and multibyte character limitations.
2004-07-15 05:12:04 +00:00
tjr
c26205072e
Use err() instead of perror(), exit().
2004-07-15 04:56:41 +00:00
tjr
508b8bed27
Use warn() instead of perror().
2004-07-15 04:51:21 +00:00
tjr
8fb57041b7
Use warn() instead of perror().
2004-07-15 04:45:24 +00:00
kientzle
429d9c9041
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
tjr
38fd4ed96d
Document the -E and -a options as being extensions.
2004-07-14 10:37:21 +00:00
tjr
b7543693c8
Update BUGS section to reflect current state of multibyte character support.
2004-07-14 10:33:29 +00:00
tjr
b7f5e217dd
Make the 'y' (translate) command aware of multibyte characters.
2004-07-14 10:06:22 +00:00
tjr
084c37915e
Fix description of cmap_lookup_hard().
2004-07-14 08:36:09 +00:00
tjr
ca547df2d3
Remove unused member of struct csclass: csc_value.
2004-07-14 08:35:11 +00:00
tjr
953a00fce4
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
tjr
8c66633468
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
tjr
056d1c10d2
Add support for multibyte characters.
2004-07-13 02:18:21 +00:00
rwatson
91e23d98c5
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
kientzle
5961a5ef84
Mimic ls(1) by putting an extra space before the year in old dates
2004-07-12 13:15:13 +00:00
kientzle
2e69e93b3c
Fix tab/space screwup in long_help()
2004-07-12 13:13:42 +00:00
tjr
1d2afa8a6d
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
des
8572ddd501
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
221d6a099a
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
tjr
52eae5c050
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
tjr
5b15fb7d42
Respect locale settings from the environment.
2004-07-12 02:48:40 +00:00
stefanf
e0b2a5b339
Fix a few cases that relied on 'implicit int' (constraint violation in C99).
2004-07-11 17:37:33 +00:00
tjr
f41e48677c
Fix document year.
...
Noticed by: simon
2004-07-11 15:04:16 +00:00
tjr
466d5d5279
Add fairly standard ENVIRONMENT and DIAGNOSTICS sections.
2004-07-11 14:47:32 +00:00
tjr
53407e8087
Respect locale settings from the environment.
2004-07-11 14:44:23 +00:00
tjr
62e0e10696
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
tjr
72e8ff2c10
Add a reference to od(1).
2004-07-10 13:11:00 +00:00
alfred
008c1be05d
Decode the "wence" arg to lseek and linux_lseek.
2004-07-10 09:23:53 +00:00
tjr
3f97d8af9c
Initialize cs_invert to "false" in new csets.
2004-07-10 06:28:18 +00:00
tjr
3e5d71bd1a
Report input errors instead of ignoring them.
2004-07-09 05:15:46 +00:00
tjr
d7311fa844
Update for multibyte character support: remove BUGS and change the
...
description of the -c option to refer to "values" instead of "byte values".
2004-07-09 02:33:46 +00:00
tjr
d291df1e3f
Add support for multibyte characters. The challenge here was to use
...
data structures that scale better with large character sets, instead of
arrays indexed by character value:
- Sets of characters to delete/squeeze are stored in a new "cset" structure,
which is implemented as a splay tree of extents. This structure has the
ability to store character classes (ala wctype(3)), but this is not
currently fully utilized.
- Mappings between characters are stored in a new "cmap" structure, which
is also a splay tree.
- The parser no longer builds arrays containing all the characters in a
particular class; instead, next() determines them on-the-fly using
nextwctype(3).
2004-07-09 02:08:07 +00:00
keramida
600bdc3b55
Build upon the nice work of Alfred and add sorting capabilities to
...
the -m "io" mode of top.
Approved by: alfred
2004-07-08 16:45:55 +00:00