Jim Meyering
40c0f14648
Import version 1.011.
1999-07-10 07:28:05 +00:00
Jim Meyering
7f44579325
.
1999-07-10 07:17:02 +00:00
Jim Meyering
171778bed3
*** empty log message ***
1999-07-09 12:51:18 +00:00
Jim Meyering
e7f7f3da11
reinclude memcoll.h (mistakenly removed by me)
1999-07-04 10:41:26 +00:00
Jim Meyering
1ccaa26ea4
*** empty log message ***
1999-07-04 10:40:15 +00:00
Jim Meyering
376c3fe740
[!defined strtoumax]: Declare strtoumax.
1999-07-04 10:40:04 +00:00
Jim Meyering
08da7047d0
.
1999-07-04 10:38:37 +00:00
Jim Meyering
0aa86039dd
*** empty log message ***
1999-07-04 10:33:50 +00:00
Jim Meyering
bfd09e35cc
(readline): Leave room for an extra byte
...
after the newline; comm needs this for memcoll.
1999-07-04 10:31:01 +00:00
Jim Meyering
115372366e
Add support for LC_COLLATE locale.
...
Include hard-locale.h, linebuffer.h, memcoll.h.
(struct line): New member `buf', replacing `beg' and `lim'.
All uses changed.
(hard_LC_COLLATE): New var.
(main): Initialize it.
(get_line): Use readline to read the line,
instead of doing it by hand.
That way, we get a buffer that we can pass to memcoll.
(keycmp): Use memcoll to compare lines if hard_LC_COLLATE is nonzero.
1999-07-04 10:28:08 +00:00
Jim Meyering
d67adf2b8c
Include hard-locale.h, memcoll.h.
...
(hard_LC_COLLATE, hard_LC_CTYPE, hard_LC_TIME): New variables,
replacing `need_locale'.
(memcoll): Move to lib/memcoll.c.
(keycompare): No need to alloc (0), since our caller now does it.
(compare): alloca (0) before returning.
(my_setlocale): Remove; hard_locale now dows this.
(main): Invoke setlocale, bindtextdomain, and textdomain before
invoking anything that might print an error.
Use hard_locale to determine which locales are hard.
1999-07-04 10:23:19 +00:00
Jim Meyering
3ad83e6ad0
Include hard-locale.h, memcoll.h.
...
(hard_LC_COLLATE): New variable.
(compare_files): Use memcoll to compare if hard_LC_COLLATE.
(main): Initialize hard_LC_COLLATE from locale.
1999-07-04 10:22:25 +00:00
Jim Meyering
ad72fa61c8
Document locale-specific mode for comm.
1999-07-04 10:21:39 +00:00
Jim Meyering
c3ee42e3b0
*** empty log message ***
1999-07-04 10:16:28 +00:00
Jim Meyering
ca3b34f491
(proc_text, check_section, main):
...
Use size_t, not int, for lengths.
Lines now contain trailing newline.
Adapt for readline changes.
1999-07-04 10:15:45 +00:00
Jim Meyering
cdcf38b40f
(find_field, different): Use size_t, not int, for lengths.
...
(writeline): Lines now contain trailing newline.
(check_file): Use size_t, not int, for lengths.
1999-07-04 10:14:03 +00:00
Jim Meyering
3423927cfa
(writeline): Lines now contain trailing newline.
1999-07-04 10:09:44 +00:00
Jim Meyering
fac400a428
[struct linebuffer] (size): Declare to be of type size_t, not long.
...
[struct linebuffer] (length): Likewise.
1999-07-04 10:08:56 +00:00
Jim Meyering
894e9948f4
(readline): Append trailing newline to line.
1999-07-04 10:06:42 +00:00
Jim Meyering
ed1684742a
(memrchr): Ifdef out this unused function.
1999-07-04 10:03:05 +00:00
Jim Meyering
468dd2822c
*** empty log message ***
1999-07-04 09:51:09 +00:00
Jim Meyering
90f1e86e58
*** empty log message ***
1999-07-04 09:46:14 +00:00
Jim Meyering
bfbd79ca59
New test case for Paul's 1999-06-03 fix.
1999-07-04 09:46:07 +00:00
Jim Meyering
fb71ae4c86
(xfields): Only <blank>s separate fields, not <space>s.
1999-07-04 09:40:46 +00:00
Jim Meyering
5b09432a60
.
1999-07-04 09:37:57 +00:00
Jim Meyering
3ba3797506
Use lower case characters in sc{} context.
...
Reported by Eli Zaretskii.
1999-07-04 09:05:08 +00:00
Jim Meyering
a64b525ff4
*** empty log message ***
1999-07-04 08:48:02 +00:00
Jim Meyering
56533a5671
(enum human_inexact_style): New enum.
...
(human_readable_inexact): New decl.
1999-07-04 08:47:49 +00:00
Jim Meyering
8999870c56
(human_readable): New function.
...
(human_readable_inexact): Renamed from human_readable, with new arg
INEXACT_STYLE. Add support for ceiling and floor.
1999-07-04 08:47:28 +00:00
Jim Meyering
40540367af
(print_header): Conform to POSIX if posix_format).
...
(df_readable): Take ceiling if posix_format.
(ceil_percent): New function.
(show_dev): Take ceiling of percent if posix_format.
Align with POSIX-conforming header if posix_format.
1999-07-04 08:47:08 +00:00
Jim Meyering
0806bbf608
*** empty log message ***
1999-07-04 08:35:05 +00:00
Jim Meyering
589cf443b9
(__strtol): Remove decl; it doesn't work if __strtol
...
expands to a macro, which occurs in HP-UX 10.20 with strtoumax.
(strtol, strtoul): New decls (for pre-ANSI hosts), to replace
the above decl.
1999-07-04 08:34:31 +00:00
Jim Meyering
0430c3c938
.
1999-05-27 13:08:29 +00:00
Jim Meyering
db358e3feb
*** empty log message ***
1999-05-27 13:08:19 +00:00
Jim Meyering
032571f565
Fix non-portable use of `tr' that caused this test
...
to fail when run with a SysV-style tr. Based on a patch from Kaveh Ghazi.
1999-05-25 16:43:57 +00:00
Jim Meyering
b38198f365
(Squeezing): Remove misleading square brackets
...
from SET1 in the one-word-per-line example.
1999-05-25 16:38:19 +00:00
Jim Meyering
0e39b529b6
(copy_internal): Don't apply the umask in move_mode.
...
Otherwise, `mv' would not preserve the permissions when copying
between partitions. Reported by David Godfrey
1999-05-23 23:23:55 +00:00
Jim Meyering
3957028d28
*** empty log message ***
1999-05-23 23:07:26 +00:00
Jim Meyering
97c9216e92
.
FILEUTILS-4_0i
1999-05-23 21:06:36 +00:00
Jim Meyering
f914ebb255
*** empty log message ***
1999-05-23 20:46:23 +00:00
Jim Meyering
3fed986eee
*** empty log message ***
1999-05-23 20:45:34 +00:00
Jim Meyering
5cd334b32e
.
1999-05-23 20:44:48 +00:00
Jim Meyering
a54b71f493
*** empty log message ***
1999-05-23 20:43:11 +00:00
Jim Meyering
08f55c4b7c
Correct erroneous expected output from the `cp -f foo foo' tests.
1999-05-23 20:42:25 +00:00
Jim Meyering
994746ffe9
(libfu_a_SOURCES): Add same.c.
...
(noinst_HEADERS): Add same.h.
1999-05-23 20:40:59 +00:00
Jim Meyering
645015312e
Remove today's earlier misguided attempts.
...
Add a single condition to the existing sameness test.
1999-05-23 20:37:16 +00:00
Jim Meyering
642d250781
Include same.h.
...
(copy_internal): Qualify SAME_INODE test with (link-count == 1
|| same_name(...)).
1999-05-23 19:45:33 +00:00
Jim Meyering
00fbb65ec1
*** empty log message ***
1999-05-23 19:43:10 +00:00
Jim Meyering
0e96b5d2e7
New file (function extracted from ln.c).
1999-05-23 19:42:59 +00:00
Jim Meyering
2a8c9424f0
(same_name): Remove function.
...
<same.h>: Include this instead.
<dirname.h>: No longer include this.
1999-05-23 19:41:19 +00:00