summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2000-07-29Include <limits.h>, <stdlib.h>, <wchar.h>, <wctype.h>.Jim Meyering
(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.
2000-07-29*** empty log message ***Jim Meyering
2000-07-29tweak commentsJim Meyering
2000-07-29(mbswidth): Add a flags argument.Jim Meyering
(mbswidth): New declaration. (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
2000-07-29.Jim Meyering
2000-07-29*** empty log message ***Jim Meyering
2000-07-29(temp_dir): Remove.Jim Meyering
(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.
2000-07-29sort's -T option can now appear multiple times.Jim Meyering
2000-07-29*** empty log message ***Jim Meyering
2000-07-25(change_file_owner): Save errno from a possibly failed chown,Jim Meyering
and use that later. Otherwise, errno itself could be clobbered before used.
2000-07-25(change_file_mode): Save errno from a possibly failed chown,Jim Meyering
and use that later. Otherwise, errno itself could be clobbered before used.
2000-07-25(change_file_group): Save errno from a possibly failed chown,Jim Meyering
and use that later. Otherwise, errno itself could be clobbered before used.
2000-07-25Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call. Add more precise diagnostics.
2000-07-25tweak diagnosticJim Meyering
2000-07-25*** empty log message ***Jim Meyering
2000-07-25Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call. Add more precise diagnostics.
2000-07-25Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call.
2000-07-25(main): Remove unnecessary "%s" argument.Jim Meyering
2000-07-24*** empty log message ***Jim Meyering
2000-07-24(mbswidth): Add a flags argument.Jim Meyering
(mbsnwidth): New function.
2000-07-24Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call. Add more precise diagnostics.
2000-07-24*** empty log message ***Jim Meyering
2000-07-24(jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.Jim Meyering
2000-07-24*** empty log message ***Jim Meyering
2000-07-24(_XOPEN_SOURCE): Don't define; this causes problems on Solaris 7.Jim Meyering
(wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
2000-07-24*** empty log message ***Jim Meyering
2000-07-24Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),Jim Meyering
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.
2000-07-23*** empty log message ***Jim Meyering
2000-07-23Streamline by invoking multibyte code only if needed.Jim Meyering
<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.
2000-07-23*** empty log message ***Jim Meyering
2000-07-23fix typos (missing commas)Jim Meyering
2000-07-23*** empty log message ***Jim Meyering
2000-07-23*** empty log message ***Jim Meyering
2000-07-23Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,Jim Meyering
rather than if _POSIX_VERSION is defined. Remove declarations of getpwuid, getgrgid, and getuid, now that they're in sys2.h.
2000-07-23.Jim Meyering
2000-07-23(main): Give a better diagnostic for e.g.,Jim Meyering
`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.
2000-07-23*** empty log message ***Jim Meyering
2000-07-23[!HAVE_DECL_GETPWUID]: Declare getpwuid.Jim Meyering
[!HAVE_DECL_GETGRGID]: Declare getgrgid. [!HAVE_DECL_GETUID]: Declare getuid.
2000-07-23*** empty log message ***Jim Meyering
2000-07-23(jm_CHECK_DECLS): Check for declarations of these, too:Jim Meyering
getgrgid, getpwuid, getuid.
2000-07-23*** empty log message ***Jim Meyering
2000-07-23*** empty log message ***Jim Meyering
2000-07-23Rename tests (and hence files) to have a shortJim Meyering
enough prefix so that they're not truncated on 8+3 file systems. Reported by Eli Zaretskii.
2000-07-23*** empty log message ***Jim Meyering
2000-07-23.Jim Meyering
2000-07-23*** empty log message ***Jim Meyering
2000-07-23Fix cp so that `cp -r DIR1/ DIR2' works once again.Jim Meyering
(ASSIGN_BASENAME_STRDUPA): New macro. (do_copy): Use it here (so we always strip trailing slashes before calling base_name).
2000-07-23(ASSIGN_STRDUPA): Remove macro definition.Jim Meyering
2000-07-23(ASSIGN_STRDUPA): New macro (moved here from remove.c).Jim Meyering
2000-07-23*** empty log message ***Jim Meyering