summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
1999-05-16Don't autodetect the locale of numbers andJim Meyering
months, as this conflicts with POSIX.2 and is tricky to boot. (FLOATING_COMMA, NLS_STRNCMP, NLS_MAX_GROUPS, NLS_ONE_CHARACTER_STRING): Remove macros no longer used. (nls_grouping, nls_fraction_found, nls_month_found, nos_monthtab, nls_months_collide, nls_keyhead, us_monthtab): Remove variables no longer used. (struct nls_keyfield): Remove types no longer used. (strncoll_s2_readonly, nls_set_fraction, look_for_fraction, nls_month_is_either_locale, nls_numeric_format): Remove functions no longer used. (monthtab): Now has the role that us_monthtab had, but it's const only if ENABLE_NLS is not defined. (C_DECIMAL_POINT): Renamed from FLOATING_POINT. All uses changed. (MONTHS_PER_YEAR): Renamed from NLS_NUM_MONTHS. All uses changed. (struct_month_cmp): Renamed from nls_sort_month_comp. All uses changed. Use strcmp, not strcoll, since the user doesn't care about collating here. (inittables): Read locale data into monthtab, rather than modifying a separate month table and futzing with indirection. Do not worry about colliding months, since we no longer autodetect month locale. (fraccompare): Don't set no-longer-used variable nls_fraction_found. (getmonth): Use strncmp to compare months, since user doesn't care about collating here. Fix bug where code incorrectly assumed that strlen (monthtab[lo].name) == strlen (monthtab[ix].name). (keycompare, main): Don't autodetect month locale. (compare): Don't use NLS_MEMCP in code that can't be executed if need_locale is false, as NLS_MEMCP is equivalent to memcmp in that case. (sort, insertkey, main): Don't autodetect numeric locale.
1999-05-15(usage): Whoops.Jim Meyering
1999-05-15(xfields): Don't interpret a trailing blank as aJim Meyering
delimiter when e.g. -t: was specified. From Tim Smithers.
1999-05-15(open_maybe_create): Handle Solaris' failure mode whenJim Meyering
FILE is a directory. Reported by Vin Shelton.
1999-05-15(main): When asking for info on an explicit file name,Jim Meyering
just warn rather than failing if the table of mounted filesystems cannot be read.
1999-05-13(pop_dir): Cast length to `int' to avoid a warning onJim Meyering
64-bit systems. From Ulrich Drepper.
1999-05-12(main): Put `u' for -u in getopt_long's string argument.Jim Meyering
Remove the `R'.
1999-05-12(usage): Split the --help message into two pieces so thatJim Meyering
neither is longer than 2048. For Irix4's cc. Reported by Kaveh Ghazi.
1999-05-10(AUTHORS): Reflect reality: add Kaveh.Jim Meyering
1999-05-10Expand each `&' character in the gecos field.Jim Meyering
(count_ampersands): New function. (create_fullname): New function. (print_entry): Use create_fullname here. (print_long_entry): Use it here, too. From Kaveh Ghazi.
1999-05-09(fraccompare, numcompare): Merge the NLS andJim Meyering
non-NLS versions into a single function. (decimal_point): Now char, since we no longer convert to unsigned char. (th_sep): Now int, since we use a value out of char range to denote the absence of a thousands separator. (IS_THOUSANDS_SEP): New macro. (USE_NEW_FRAC_COMPARE): Remove. (nls_set_fraction): Arg is now char, not unsigned char. Set th_sep to CHAR_MAX + 1 if there is no thousands separator. (numcompare): Don't convert to unsigned char unless necessary. (main): Turn off decimal points and thousand separators if they are multibyte characters, as we don't support that yet.
1999-05-08* src/system.h (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM,Jim Meyering
and all the *_MIN and *_MAX symbols): Remove definitions. * src/sys2.h: Put the definitions here instead (this file is shared between all three *utils packages, while system.h is not).
1999-05-08* src/system.h (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM,Jim Meyering
and all the *_MIN and *_MAX symbols): Remove definitions. * src/sys2.h: Put the definitions here instead (this file is shared between all three *utils packages, while system.h is not).
1999-05-07(handle_line_error): Use %s, not %d, now that human_readableJim Meyering
converts it to a string.
1999-05-07(touch): Only do the fstat if we need to.Jim Meyering
Resort to calling stat for directories, but only when necessary. (usage): Mention --no-create.
1999-05-07(main): Use better wording in diagnostic: `cannotJim Meyering
create directory' rather than `cannot make directory'. The former also matches the one in makepath.c.
1999-05-07(apply_translations): Use TOUPPER, not toupper.Jim Meyering
1999-05-06(numcompare): Handle comparison of two negativeJim Meyering
numbers correctly in the ENABLE_NLS case.
1999-05-05(show_date): Change an automatic aggregate initializerJim Meyering
to be a static one. For SunOS4's cc.
1999-05-05(USE_ACL): Define this only #ifJim Meyering
(HAVE_SYS_ACL_H && HAVE_ACL && defined GETACLCNT). Use `USE_ACL' in place of `HAVE_ACL' everywhere else. From Kaveh Ghazi.
1999-05-05add missing backslash-before-newline in usage messageJim Meyering
1999-05-05add missing backslash-before-newline in usage messageJim Meyering
1999-05-04(usage): Break the usage message into 3 pieces instead ofJim Meyering
only 2. The strings had grown to be longer than 2048, which evokes errors when compiling with Irix4's cc.
1999-05-04(search_item): Use `1' instead of `+1'. The latterJim Meyering
elicits a syntax error from SunOS4's cc. From Kaveh Ghazi.
1999-05-03<ctype.h>: Don't include.Jim Meyering
[!STDC_HEADERS]: Remove definitions of ctype macros. Convert e.g., isspace to ISSPACE to use definitions from sys2.h. Reported by Kaveh Ghazi.
1999-05-03(TOLOWER): Define.Jim Meyering
(TOUPPER): Define.
1999-05-03(TOLOWER): Remove definition.Jim Meyering
1999-05-03(main): Give a better diagnostic when we fail to set the hostname.Jim Meyering
1999-05-03(main): Manually handle `--', since we no longer call getopt.Jim Meyering
1999-05-01(main): Manually handle `--', since we no longerJim Meyering
call getopt. Reported by Joseph S. Myers.
1999-05-01(main): Manually handle `--', since we no longerJim Meyering
call getopt. Reported by Joseph S. Myers.
1999-05-01(decode_switches): Use STDIN_FILENO, STDOUT_FILENO instead of 0, 1.Jim Meyering
1999-05-01Always use STDIN_FILENO for input and STDOUT_FILENOJim Meyering
for output, to avoid confusion with closed input and output fds. (input_fd, output_fd): Remove; all uses changed to STDIN_FILENO and STDOUT_FILENO. (open_fd): New function. (main): Use it, instead of open, to ensure that file descriptors don't get confused. (skip): Don't fstat the input file; the result is no longer used.
1999-05-01(usage): Document the differences between theJim Meyering
obsolescent, +POS1[-POS2] form, and the POSIX -k option.
1999-04-30(copy_internal): Move the one-file-system test so thatJim Meyering
it follows the `if (new_dst || !S_ISDIR (dst_sb.st_mode))' block. Prior to this change, `cp --one-file-system' would traverse a file- system boundary if the destination directory existed. From thospel@mail.dma.be.
1999-04-30(copy_internal): Don't make `mv foo symlink-to-foo' fail.Jim Meyering
That is, even though source and destination are `the same,' don't fail if the destination is a symlink. From Peter Samuelson.
1999-04-26(main): If you can't open an output file (with seek=...) read-write,Jim Meyering
then open it for write and report an error if we can't seek.
1999-04-26(main): Use proper mode_t types and macros.Jim Meyering
Don't assume the traditional Unix values for mode bits.
1999-04-26(do_copy, cp_option_init, main): Use proper mode_t types and macros.Jim Meyering
Don't assume the traditional Unix values for mode bits.
1999-04-26(struct cp_options.umask_kill): Use mode_t, not unsigned int.Jim Meyering
1999-04-26(copy_reg, copy_internal): Use proper mode_t types and macros.Jim Meyering
Don't assume the traditional Unix values for mode bits.
1999-04-26(describe_change, change_file_mode): Use proper mode_t types and macros.Jim Meyering
Don't assume the traditional Unix values for mode bits.
1999-04-26(main): Use proper mode_t types and macros.Jim Meyering
Don't assume the traditional Unix values for mode bits.
1999-04-26(isodigit): Remove unused macro.Jim Meyering
(mode, cp_option_init, DIR_MODE): Use proper mode_t types and macros. Don't assume the traditional Unix values for mode bits.
1999-04-26(S_ISUID, S_ISGID, S_ISVTX, S_IRWXU, S_IRWXG, S_IRWXO):Jim Meyering
Define if not defined. (CHMOD_MODE_BITS): New macro.
1999-04-26(open_maybe_create): Don't pass 0666 to open; it's not needed and isn'tJim Meyering
guaranteed to be portable.
1999-04-26Use proper mode_t types and macros.Jim Meyering
Don't assume the traditional Unix values for mode bits.
1999-04-26Use proper mode_t types and macros.Jim Meyering
Don't assume the traditional Unix values for mode bits.
1999-04-26Use proper mode_t types and macros.Jim Meyering
Don't assume the traditional Unix values for mode bits.
1999-04-26(main): Revert last change.Jim Meyering
Instead, loop on `optind < argc' to protect use of argv[optind].