Jim Meyering [Sat, 29 Jul 2000 17:06:00 +0000 (17:06 +0000)]
(diacrit_diac): Use __MSDOS__ in favor of MSDOS.
Jim Meyering [Sat, 29 Jul 2000 16:45:30 +0000 (16:45 +0000)]
(base_name): Use ISSLASH rather than comparing against `/'.
Jim Meyering [Sat, 29 Jul 2000 14:55:51 +0000 (14:55 +0000)]
fix spelling error in comment: s/squirelled/squirreled/.
Jim Meyering [Sat, 29 Jul 2000 08:15:37 +0000 (08:15 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Jul 2000 08:15:01 +0000 (08:15 +0000)]
remove prematurely-added ISSLASH definition
Jim Meyering [Sat, 29 Jul 2000 08:10:46 +0000 (08:10 +0000)]
(dir_name): Assert that there are no trailing slashes.
Jim Meyering [Sat, 29 Jul 2000 08:00:17 +0000 (08:00 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Jul 2000 08:00:11 +0000 (08:00 +0000)]
(dir_name) [MSDOS]: Declare `lim' to be const.
Jim Meyering [Sat, 29 Jul 2000 06:17:27 +0000 (06:17 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 29 Jul 2000 06:09:43 +0000 (06:09 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Jul 2000 06:09:22 +0000 (06:09 +0000)]
tweak comments
Jim Meyering [Sat, 29 Jul 2000 06:02:28 +0000 (06:02 +0000)]
(mbswidth): Add a flags argument.
(mbswidth): New declaration.
(MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
Jim Meyering [Sat, 29 Jul 2000 05:47:42 +0000 (05:47 +0000)]
.
Jim Meyering [Sat, 29 Jul 2000 05:42:14 +0000 (05:42 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Jul 2000 05:41:55 +0000 (05:41 +0000)]
(temp_dir): Remove.
(temp_dirs, temp_dir_count, temp_dir_alloc): New vars.
(process_id): New var.
(usage): Describe new use of -T.
(add_temp_dir): New function.
(tempname): Use new temp_dirs array.
Do not discard information from the process-id or sequence
number, unless we have short file names.
(sighandle): Use process_id instead of getpid.
(main): Initialize process_id.
Add support for the new use of -T.
Jim Meyering [Sat, 29 Jul 2000 05:31:44 +0000 (05:31 +0000)]
sort's -T option can now appear multiple times.
Jim Meyering [Sat, 29 Jul 2000 05:25:34 +0000 (05:25 +0000)]
*** empty log message ***
Jim Meyering [Tue, 25 Jul 2000 22:23:05 +0000 (22:23 +0000)]
(change_file_owner): Save errno from a possibly failed chown,
and use that later. Otherwise, errno itself could be clobbered before used.
Jim Meyering [Tue, 25 Jul 2000 22:22:52 +0000 (22:22 +0000)]
(change_file_mode): Save errno from a possibly failed chown,
and use that later. Otherwise, errno itself could be clobbered before used.
Jim Meyering [Tue, 25 Jul 2000 22:22:29 +0000 (22:22 +0000)]
(change_file_group): Save errno from a possibly failed chown,
and use that later. Otherwise, errno itself could be clobbered before used.
Jim Meyering [Tue, 25 Jul 2000 13:06:31 +0000 (13:06 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Add more precise diagnostics.
Jim Meyering [Tue, 25 Jul 2000 12:28:33 +0000 (12:28 +0000)]
tweak diagnostic
Jim Meyering [Tue, 25 Jul 2000 12:27:01 +0000 (12:27 +0000)]
*** empty log message ***
Jim Meyering [Tue, 25 Jul 2000 12:26:52 +0000 (12:26 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Add more precise diagnostics.
Jim Meyering [Tue, 25 Jul 2000 12:18:06 +0000 (12:18 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Jim Meyering [Tue, 25 Jul 2000 12:16:16 +0000 (12:16 +0000)]
(main): Remove unnecessary "%s" argument.
Jim Meyering [Mon, 24 Jul 2000 16:30:03 +0000 (16:30 +0000)]
*** empty log message ***
Jim Meyering [Mon, 24 Jul 2000 16:29:57 +0000 (16:29 +0000)]
(mbswidth): Add a flags argument.
(mbsnwidth): New function.
Jim Meyering [Mon, 24 Jul 2000 09:32:07 +0000 (09:32 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Add more precise diagnostics.
Jim Meyering [Mon, 24 Jul 2000 06:42:26 +0000 (06:42 +0000)]
*** empty log message ***
Jim Meyering [Mon, 24 Jul 2000 06:42:17 +0000 (06:42 +0000)]
(jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
Jim Meyering [Mon, 24 Jul 2000 06:42:04 +0000 (06:42 +0000)]
*** empty log message ***
Jim Meyering [Mon, 24 Jul 2000 06:41:58 +0000 (06:41 +0000)]
(_XOPEN_SOURCE): Don't define; this causes problems on Solaris 7.
(wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
Jim Meyering [Mon, 24 Jul 2000 06:14:32 +0000 (06:14 +0000)]
*** empty log message ***
Jim Meyering [Mon, 24 Jul 2000 06:14:19 +0000 (06:14 +0000)]
Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
so that mbstate_t is always defined.
Do not inspect MB_LEN_MAX, since it's incorrectly defined to
be 1 in at least one GCC installation, and this configuration
error is likely to be common. Ignoring MB_LEN_MAX hurts
performance on hosts that have mbrtowc but have only unibyte
locales, but I assume these hosts are rare.
Jim Meyering [Sun, 23 Jul 2000 21:48:28 +0000 (21:48 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 21:48:17 +0000 (21:48 +0000)]
Streamline by invoking multibyte code only if needed.
<wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
(MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
(quotearg_buffer_restyled): If a unibyte locale, don't bother to
invoke multibyte primitives.
Jim Meyering [Sun, 23 Jul 2000 21:06:22 +0000 (21:06 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 18:44:35 +0000 (18:44 +0000)]
fix typos (missing commas)
Jim Meyering [Sun, 23 Jul 2000 18:29:44 +0000 (18:29 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 16:27:38 +0000 (16:27 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 16:27:13 +0000 (16:27 +0000)]
Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
rather than if _POSIX_VERSION is defined. Remove declarations of
getpwuid, getgrgid, and getuid, now that they're in sys2.h.
Jim Meyering [Sun, 23 Jul 2000 15:36:43 +0000 (15:36 +0000)]
.
Jim Meyering [Sun, 23 Jul 2000 15:36:34 +0000 (15:36 +0000)]
(main): Give a better diagnostic for e.g.,
`dd if=/dev/fd0 seek=
100000000000'.
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Add many, more precise diagnostics.
Jim Meyering [Sun, 23 Jul 2000 15:28:29 +0000 (15:28 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 15:28:24 +0000 (15:28 +0000)]
[!HAVE_DECL_GETPWUID]: Declare getpwuid.
[!HAVE_DECL_GETGRGID]: Declare getgrgid.
[!HAVE_DECL_GETUID]: Declare getuid.
Jim Meyering [Sun, 23 Jul 2000 15:27:19 +0000 (15:27 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 15:27:11 +0000 (15:27 +0000)]
(jm_CHECK_DECLS): Check for declarations of these, too:
getgrgid, getpwuid, getuid.
Jim Meyering [Sun, 23 Jul 2000 13:58:48 +0000 (13:58 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 11:07:09 +0000 (11:07 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 11:07:05 +0000 (11:07 +0000)]
Rename tests (and hence files) to have a short
enough prefix so that they're not truncated on 8+3 file systems.
Reported by Eli Zaretskii.
Jim Meyering [Sun, 23 Jul 2000 11:01:19 +0000 (11:01 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 10:59:53 +0000 (10:59 +0000)]
.
Jim Meyering [Sun, 23 Jul 2000 10:58:52 +0000 (10:58 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 10:54:01 +0000 (10:54 +0000)]
Fix cp so that `cp -r DIR1/ DIR2' works once again.
(ASSIGN_BASENAME_STRDUPA): New macro.
(do_copy): Use it here (so we always strip trailing slashes before
calling base_name).
Jim Meyering [Sun, 23 Jul 2000 10:52:05 +0000 (10:52 +0000)]
(ASSIGN_STRDUPA): Remove macro definition.
Jim Meyering [Sun, 23 Jul 2000 10:49:59 +0000 (10:49 +0000)]
(ASSIGN_STRDUPA): New macro (moved here from remove.c).
Jim Meyering [Sun, 23 Jul 2000 09:25:19 +0000 (09:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 09:25:14 +0000 (09:25 +0000)]
(base_name): Add an assertion.
Jim Meyering [Sun, 23 Jul 2000 09:02:29 +0000 (09:02 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 09:00:22 +0000 (09:00 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 09:00:17 +0000 (09:00 +0000)]
(TESTS): Add dir-slash.
Jim Meyering [Sun, 23 Jul 2000 08:38:30 +0000 (08:38 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Jul 2000 08:38:25 +0000 (08:38 +0000)]
When the system forces us to redefine mbstate_t, shadow its mbsinit function.
Jim Meyering [Wed, 19 Jul 2000 21:01:16 +0000 (21:01 +0000)]
*** empty log message ***
Jim Meyering [Wed, 19 Jul 2000 21:00:20 +0000 (21:00 +0000)]
(batch_convert): Free `initial_TZ' only if it was set.
Jim Meyering [Wed, 19 Jul 2000 21:00:03 +0000 (21:00 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Jul 2000 20:48:36 +0000 (20:48 +0000)]
.
Jim Meyering [Mon, 17 Jul 2000 20:48:00 +0000 (20:48 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Jul 2000 20:47:53 +0000 (20:47 +0000)]
(WGET): Define.
(ftp-gnu): Define.
(wget-update): New rule, based on the one in autoconf.
Jim Meyering [Mon, 17 Jul 2000 20:46:35 +0000 (20:46 +0000)]
.
Jim Meyering [Mon, 17 Jul 2000 20:45:03 +0000 (20:45 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Jul 2000 20:45:00 +0000 (20:45 +0000)]
(libfetish_a_SOURCES): Add mbswidth.c.
(noinst_HEADERS): Add mbswidth.h.
Jim Meyering [Mon, 17 Jul 2000 20:43:18 +0000 (20:43 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Jul 2000 20:42:46 +0000 (20:42 +0000)]
from Bruno Haible.
Jim Meyering [Mon, 17 Jul 2000 20:42:12 +0000 (20:42 +0000)]
from Bruno Haible.
Jim Meyering [Mon, 17 Jul 2000 20:41:10 +0000 (20:41 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Jul 2000 20:40:39 +0000 (20:40 +0000)]
(jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
Jim Meyering [Mon, 17 Jul 2000 20:40:18 +0000 (20:40 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Jul 2000 20:07:49 +0000 (20:07 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Jul 2000 20:07:33 +0000 (20:07 +0000)]
(visible): Don't mark `<undef>' for translation.
The standard requires that exact string.
Jim Meyering [Mon, 17 Jul 2000 20:05:40 +0000 (20:05 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Jul 2000 20:05:30 +0000 (20:05 +0000)]
Add support for FreeBSD. Improve support for HP-UX and IRIX 6.
Jim Meyering [Mon, 17 Jul 2000 19:43:38 +0000 (19:43 +0000)]
.
Jim Meyering [Mon, 17 Jul 2000 19:43:14 +0000 (19:43 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Jul 2000 19:43:05 +0000 (19:43 +0000)]
(usage): Give a little more info.
Remove FIXME comment.
Jim Meyering [Mon, 17 Jul 2000 08:17:12 +0000 (08:17 +0000)]
Avoid warnings.
(struct bin_str): Declare `string' member to be `const'.
(put_indicator): Declare local `p' to be `const'.
Jim Meyering [Sat, 15 Jul 2000 13:32:16 +0000 (13:32 +0000)]
*** empty log message ***
Jim Meyering [Sat, 15 Jul 2000 13:32:02 +0000 (13:32 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Improve a couple diagnostics.
Jim Meyering [Sat, 15 Jul 2000 13:29:01 +0000 (13:29 +0000)]
.
Jim Meyering [Sat, 15 Jul 2000 13:27:37 +0000 (13:27 +0000)]
*** empty log message ***
Jim Meyering [Sat, 15 Jul 2000 13:27:30 +0000 (13:27 +0000)]
Include quote.h.
(make_path): Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call.
Give better diagnostics.
Jim Meyering [Sat, 15 Jul 2000 10:35:27 +0000 (10:35 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call -- if there's only one.
If there are more than one, then use `quote_n (0, ...),
quote_n (1, ...), ...'.
Jim Meyering [Sat, 15 Jul 2000 10:11:47 +0000 (10:11 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call -- if there's only one.
If there are more than one, then use `quote_n (0, ...),
quote_n (1, ...), ...'.
Jim Meyering [Sat, 15 Jul 2000 10:11:18 +0000 (10:11 +0000)]
Convert "`%s'" in format strings to "%s", and wrap each
corresponding argument in a `quote (...)' call -- if there's only one.
If there are more than one, then use `quote_n (0, ...),
quote_n (1, ...), ...'.
Jim Meyering [Sat, 15 Jul 2000 09:58:14 +0000 (09:58 +0000)]
*** empty log message ***
Jim Meyering [Sat, 15 Jul 2000 09:58:10 +0000 (09:58 +0000)]
(libfetish_a_SOURCES): Add quote.c.
(noinst_HEADERS): Add quote.h.
Jim Meyering [Sat, 15 Jul 2000 09:57:38 +0000 (09:57 +0000)]
*** empty log message ***
Jim Meyering [Sat, 15 Jul 2000 09:57:19 +0000 (09:57 +0000)]
(quote, quote_n): New file. Two functions taken verbatim
from tar's src/misc.c.