platform/upstream/coreutils.git
24 years agoWe know nbytes is 0, so remove it from bail-out test.
Jim Meyering [Sun, 6 Aug 2000 15:08:29 +0000 (15:08 +0000)]
We know nbytes is 0, so remove it from bail-out test.

24 years ago*** empty log message ***
Jim Meyering [Sun, 6 Aug 2000 09:06:22 +0000 (09:06 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 6 Aug 2000 09:06:00 +0000 (09:06 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 6 Aug 2000 09:03:33 +0000 (09:03 +0000)]
*** empty log message ***

24 years ago(pipe_lines): Declare local `cp' to be const.
Jim Meyering [Sun, 6 Aug 2000 09:03:29 +0000 (09:03 +0000)]
(pipe_lines): Declare local `cp' to be const.

24 years ago*** empty log message ***
Jim Meyering [Sun, 6 Aug 2000 08:45:47 +0000 (08:45 +0000)]
*** empty log message ***

24 years ago(pipe_lines): Add variable `nbytes' so we can free
Jim Meyering [Sun, 6 Aug 2000 08:44:11 +0000 (08:44 +0000)]
(pipe_lines): Add variable `nbytes' so we can free
`tmp' immediately after read loop.  Don't process an empty file.
This fixes a buffer-underrun error -- also thanks to bounded pointers.

24 years ago(main): Rename local `t' to `tmp_dir' to avoid shadowing
Jim Meyering [Sat, 5 Aug 2000 20:27:49 +0000 (20:27 +0000)]
(main): Rename local `t' to `tmp_dir' to avoid shadowing
a previous local by that name.
(usage): Warn that GNU sort is now locale-aware, and suggest
people put LC_ALL=POSIX in their environment.

24 years ago*** empty log message ***
Jim Meyering [Sat, 5 Aug 2000 19:36:37 +0000 (19:36 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Sat, 5 Aug 2000 19:36:20 +0000 (19:36 +0000)]
.

24 years ago.
Jim Meyering [Sat, 5 Aug 2000 19:35:59 +0000 (19:35 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sat, 5 Aug 2000 19:31:58 +0000 (19:31 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Sat, 5 Aug 2000 11:51:10 +0000 (11:51 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sat, 5 Aug 2000 11:50:43 +0000 (11:50 +0000)]
*** empty log message ***

24 years ago(init_header): Fix buffer-overrun error.
Jim Meyering [Sat, 5 Aug 2000 10:56:12 +0000 (10:56 +0000)]
(init_header): Fix buffer-overrun error.
Allocated buffer was sometimes too small.
Reported by Greg McGary (who found this bug using his
bounded-pointers-enabled gcc).
(init_header): Move declarations of several variables into the
inner scope where they are used.

24 years ago.
Jim Meyering [Sat, 5 Aug 2000 10:51:58 +0000 (10:51 +0000)]
.

24 years ago(narrow-1): New test, for the above.
Jim Meyering [Sat, 5 Aug 2000 10:51:39 +0000 (10:51 +0000)]
(narrow-1): New test, for the above.

24 years ago*** empty log message ***
Jim Meyering [Sat, 5 Aug 2000 08:34:36 +0000 (08:34 +0000)]
*** empty log message ***

24 years ago(MAX): Remove definition (It's in sys2.h).
Jim Meyering [Sat, 5 Aug 2000 08:34:25 +0000 (08:34 +0000)]
(MAX): Remove definition (It's in sys2.h).

24 years ago*** empty log message ***
Jim Meyering [Fri, 4 Aug 2000 10:18:09 +0000 (10:18 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Fri, 4 Aug 2000 10:13:36 +0000 (10:13 +0000)]
*** empty log message ***

24 years ago(store_columns): Remove conjunct that would dereference
Jim Meyering [Fri, 4 Aug 2000 10:13:30 +0000 (10:13 +0000)]
(store_columns): Remove conjunct that would dereference
an out-of-bounds pointer.  Reported by Greg McGary (who found this
bug using his bounded-pointers-enabled gcc).

24 years ago*** empty log message ***
Jim Meyering [Thu, 3 Aug 2000 23:10:28 +0000 (23:10 +0000)]
*** empty log message ***

24 years ago(SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
Jim Meyering [Thu, 3 Aug 2000 23:10:05 +0000 (23:10 +0000)]
(SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
(EXTEND_BUFFER): Use them.

24 years ago.
Jim Meyering [Thu, 3 Aug 2000 08:00:40 +0000 (08:00 +0000)]
.

24 years ago.
Jim Meyering [Thu, 3 Aug 2000 08:00:00 +0000 (08:00 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Thu, 3 Aug 2000 07:57:51 +0000 (07:57 +0000)]
*** empty log message ***

24 years ago($(srcdir)/$x-tests): Use -I$(srcdir), not `-I.'.
Jim Meyering [Thu, 3 Aug 2000 07:57:46 +0000 (07:57 +0000)]
($(srcdir)/$x-tests): Use -I$(srcdir), not `-I.'.
(Makefile.am): Likewise.  Reported by Greg McGary.

24 years ago.
Jim Meyering [Tue, 1 Aug 2000 07:52:37 +0000 (07:52 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Tue, 1 Aug 2000 07:52:26 +0000 (07:52 +0000)]
*** empty log message ***

24 years agoranges vs ebcdic
Jim Meyering [Tue, 1 Aug 2000 07:39:56 +0000 (07:39 +0000)]
ranges vs ebcdic

24 years ago*** empty log message ***
Jim Meyering [Tue, 1 Aug 2000 07:11:04 +0000 (07:11 +0000)]
*** empty log message ***

24 years ago(tee): Use SET_BINARY and SET_BINARY2.
Jim Meyering [Tue, 1 Aug 2000 07:10:57 +0000 (07:10 +0000)]
(tee): Use SET_BINARY and SET_BINARY2.
From Prashant TR.

24 years ago*** empty log message ***
Jim Meyering [Tue, 1 Aug 2000 07:10:10 +0000 (07:10 +0000)]
*** empty log message ***

24 years ago(ISSLASH): Define.
Jim Meyering [Tue, 1 Aug 2000 07:10:05 +0000 (07:10 +0000)]
(ISSLASH): Define.
(BACKSLASH_IS_PATH_SEPARATOR): Define.
(dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
both `\' and `/' may be use as path separators.
Based on a patch from Prashant TR.

24 years ago*** empty log message ***
Jim Meyering [Mon, 31 Jul 2000 18:30:27 +0000 (18:30 +0000)]
*** empty log message ***

24 years ago(quotearg_n_options): Don't make the initial
Jim Meyering [Mon, 31 Jul 2000 18:30:21 +0000 (18:30 +0000)]
(quotearg_n_options): Don't make the initial
slot vector a constant, since it might get modified.

24 years agoTweak comments, per Bruno's comments.
Jim Meyering [Mon, 31 Jul 2000 12:31:44 +0000 (12:31 +0000)]
Tweak comments, per Bruno's comments.

24 years agoTweak comments, per Bruno's comments.
Jim Meyering [Mon, 31 Jul 2000 12:30:24 +0000 (12:30 +0000)]
Tweak comments, per Bruno's comments.

24 years ago*** empty log message ***
Jim Meyering [Mon, 31 Jul 2000 07:48:05 +0000 (07:48 +0000)]
*** empty log message ***

24 years ago(quotearg_n_options): Preallocate a slot 0
Jim Meyering [Mon, 31 Jul 2000 07:23:01 +0000 (07:23 +0000)]
(quotearg_n_options): Preallocate a slot 0
buffer, so that the caller can always quote one small
component of a "memory exhausted" message in slot 0.
From a suggestion by Jim Meyering.

24 years ago*** empty log message ***
Jim Meyering [Mon, 31 Jul 2000 06:50:26 +0000 (06:50 +0000)]
*** empty log message ***

24 years ago(cut_fields): Use `virtual memory exhausted', not `Memory exhausted'.
Jim Meyering [Mon, 31 Jul 2000 06:48:43 +0000 (06:48 +0000)]
(cut_fields): Use `virtual memory exhausted', not `Memory exhausted'.

24 years agoUse `virtual memory exhausted', not `Memory exhausted'.
Jim Meyering [Mon, 31 Jul 2000 06:47:33 +0000 (06:47 +0000)]
Use `virtual memory exhausted', not `Memory exhausted'.

24 years ago*** empty log message ***
Jim Meyering [Mon, 31 Jul 2000 06:46:33 +0000 (06:46 +0000)]
*** empty log message ***

24 years ago[!HAVE_CONFIG_H]: Use `virtual memory exhausted', not `Memory exhausted'.
Jim Meyering [Mon, 31 Jul 2000 06:46:21 +0000 (06:46 +0000)]
[!HAVE_CONFIG_H]: Use `virtual memory exhausted', not `Memory exhausted'.

24 years agoUse `virtual memory exhausted', not `Memory exhausted'.
Jim Meyering [Mon, 31 Jul 2000 06:44:51 +0000 (06:44 +0000)]
Use `virtual memory exhausted', not `Memory exhausted'.

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 20:25:31 +0000 (20:25 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 19:51:03 +0000 (19:51 +0000)]
*** empty log message ***

24 years ago(ISPRINT): Undef before defining to avoid warning.
Jim Meyering [Sun, 30 Jul 2000 19:50:58 +0000 (19:50 +0000)]
(ISPRINT): Undef before defining to avoid warning.

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 18:44:58 +0000 (18:44 +0000)]
*** empty log message ***

24 years agoAdd quote marks to match new behavior.
Jim Meyering [Sun, 30 Jul 2000 18:44:43 +0000 (18:44 +0000)]
Add quote marks to match new behavior.

24 years ago(remove_file): Quote the file names that are displayed with --verbose.
Jim Meyering [Sun, 30 Jul 2000 18:42:07 +0000 (18:42 +0000)]
(remove_file): Quote the file names that are displayed with --verbose.

24 years ago(copy_internal): Quote the file names that are displayed
Jim Meyering [Sun, 30 Jul 2000 18:41:55 +0000 (18:41 +0000)]
(copy_internal): Quote the file names that are displayed
with --verbose and --backup.

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 17:08:10 +0000 (17:08 +0000)]
*** empty log message ***

24 years agoConvert "`%s'" in format strings to "%s", and wrap each
Jim Meyering [Sun, 30 Jul 2000 17:08:05 +0000 (17:08 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 17:06:49 +0000 (17:06 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Sun, 30 Jul 2000 16:51:16 +0000 (16:51 +0000)]
.

24 years ago.
Jim Meyering [Sun, 30 Jul 2000 16:50:16 +0000 (16:50 +0000)]
.

24 years ago.
Jim Meyering [Sun, 30 Jul 2000 16:49:47 +0000 (16:49 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 16:45:35 +0000 (16:45 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 16:34:56 +0000 (16:34 +0000)]
*** empty log message ***

24 years agoConvert "`%s'" in format strings to "%s", and wrap each
Jim Meyering [Sun, 30 Jul 2000 16:34:48 +0000 (16:34 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.

24 years agoConvert "`%s'" in format strings to "%s", and wrap each
Jim Meyering [Sun, 30 Jul 2000 16:33:08 +0000 (16:33 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 16:30:59 +0000 (16:30 +0000)]
*** empty log message ***

24 years agoConvert "`%s'" in format strings to "%s", and wrap each
Jim Meyering [Sun, 30 Jul 2000 16:30:43 +0000 (16:30 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.

24 years agoConvert "`%s'" in format strings to "%s", and wrap each
Jim Meyering [Sun, 30 Jul 2000 16:29:15 +0000 (16:29 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 16:28:30 +0000 (16:28 +0000)]
*** empty log message ***

24 years agoConvert "`%s'" in format strings to "%s", and wrap each
Jim Meyering [Sun, 30 Jul 2000 16:28:25 +0000 (16:28 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.

24 years agoConvert "`%s'" in format strings to "%s", and wrap each
Jim Meyering [Sun, 30 Jul 2000 16:26:43 +0000 (16:26 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 16:25:01 +0000 (16:25 +0000)]
*** empty log message ***

24 years ago(make_path): Quote the other instance, too.
Jim Meyering [Sun, 30 Jul 2000 16:24:51 +0000 (16:24 +0000)]
(make_path): Quote the other instance, too.

24 years agoinclude quote.h.
Jim Meyering [Sun, 30 Jul 2000 16:21:57 +0000 (16:21 +0000)]
include quote.h.

24 years agoConvert "`%s'" in format strings to "%s", and wrap each
Jim Meyering [Sun, 30 Jul 2000 16:21:39 +0000 (16:21 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.

24 years agoConvert "`%s'" in format strings to "%s", and wrap each
Jim Meyering [Sun, 30 Jul 2000 16:19:33 +0000 (16:19 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.

24 years agoConvert "`%s'" in format strings to "%s", and wrap each
Jim Meyering [Sun, 30 Jul 2000 16:16:16 +0000 (16:16 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Add more precise diagnostics.

24 years ago(remove_cwd_entries): Quote one more file name.
Jim Meyering [Sun, 30 Jul 2000 16:03:37 +0000 (16:03 +0000)]
(remove_cwd_entries): Quote one more file name.

24 years agotweak diagnostic
Jim Meyering [Sun, 30 Jul 2000 16:01:48 +0000 (16:01 +0000)]
tweak diagnostic

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 15:32:15 +0000 (15:32 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 15:31:20 +0000 (15:31 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 15:29:27 +0000 (15:29 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 15:28:36 +0000 (15:28 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 15:24:27 +0000 (15:24 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 30 Jul 2000 15:23:55 +0000 (15:23 +0000)]
*** empty log message ***

24 years agomoved from ../src
Jim Meyering [Sun, 30 Jul 2000 15:17:34 +0000 (15:17 +0000)]
moved from ../src

24 years ago(do_move): Fix typo.
Jim Meyering [Sun, 30 Jul 2000 15:01:11 +0000 (15:01 +0000)]
(do_move): Fix typo.

24 years ago(dir_name): Use __MSDOS__ in favor of MSDOS.
Jim Meyering [Sat, 29 Jul 2000 17:11:33 +0000 (17:11 +0000)]
(dir_name): Use __MSDOS__ in favor of MSDOS.

24 years ago*** empty log message ***
Jim Meyering [Sat, 29 Jul 2000 17:06:53 +0000 (17:06 +0000)]
*** empty log message ***

24 years ago(diacrit_diac): Use __MSDOS__ in favor of MSDOS.
Jim Meyering [Sat, 29 Jul 2000 17:06:00 +0000 (17:06 +0000)]
(diacrit_diac): Use __MSDOS__ in favor of MSDOS.

24 years ago(base_name): Use ISSLASH rather than comparing against `/'.
Jim Meyering [Sat, 29 Jul 2000 16:45:30 +0000 (16:45 +0000)]
(base_name): Use ISSLASH rather than comparing against `/'.

24 years agofix spelling error in comment: s/squirelled/squirreled/.
Jim Meyering [Sat, 29 Jul 2000 14:55:51 +0000 (14:55 +0000)]
fix spelling error in comment: s/squirelled/squirreled/.

24 years ago*** empty log message ***
Jim Meyering [Sat, 29 Jul 2000 08:15:37 +0000 (08:15 +0000)]
*** empty log message ***

24 years agoremove prematurely-added ISSLASH definition
Jim Meyering [Sat, 29 Jul 2000 08:15:01 +0000 (08:15 +0000)]
remove prematurely-added ISSLASH definition

24 years ago(dir_name): Assert that there are no trailing slashes.
Jim Meyering [Sat, 29 Jul 2000 08:10:46 +0000 (08:10 +0000)]
(dir_name): Assert that there are no trailing slashes.

24 years ago*** empty log message ***
Jim Meyering [Sat, 29 Jul 2000 08:00:17 +0000 (08:00 +0000)]
*** empty log message ***

24 years ago(dir_name) [MSDOS]: Declare `lim' to be const.
Jim Meyering [Sat, 29 Jul 2000 08:00:11 +0000 (08:00 +0000)]
(dir_name) [MSDOS]: Declare `lim' to be const.

24 years ago*** empty log message ***
Jim Meyering [Sat, 29 Jul 2000 06:17:27 +0000 (06:17 +0000)]
*** empty log message ***

24 years agoInclude <limits.h>, <stdlib.h>, <wchar.h>, <wctype.h>.
Jim Meyering [Sat, 29 Jul 2000 06:17:02 +0000 (06:17 +0000)]
Include <limits.h>, <stdlib.h>, <wchar.h>, <wctype.h>.
(quote_name): Use mbrtowc to step through the filename string while
replacing nonprintables with question marks. Return the screen width,
not the strlen length. Do no output if the out stream is NULL.
(length_of_file_name_and_frills): Use the quote_name return value.

24 years ago*** empty log message ***
Jim Meyering [Sat, 29 Jul 2000 06:09:43 +0000 (06:09 +0000)]
*** empty log message ***

24 years agotweak comments
Jim Meyering [Sat, 29 Jul 2000 06:09:22 +0000 (06:09 +0000)]
tweak comments