1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-26 10:39:01 +02:00
Commit Graph

21665 Commits

Author SHA1 Message Date
Paul Eggert 7cc7ac0574 Add tests for --rfc-3339. 2005-09-13 22:09:03 +00:00
Paul Eggert 2c29ba03ac (TIME_SPEC_DATE): No longer needs to be nonzero, so
remove the "=1".
(TIME_SOEC_HOURS, TIME_SPEC_MINUTES): Must be at end now, so put
them there.
(time_spec_string, time_spec): Hours and minutes must be at
start now, so put them there.
(rfc_2822_format): Now a string constant, not a boolean.  All uses
changed.
(iso_8601_format, rfc_format): Remove.
(RFC_3339_OPTION): New constant.
(long_options): Add --rfc-3339.
(usage): Add --rfc-3339.  Don't mention --iso-8601.
Mention %:z, %::z, %:::z.
(main): Simplify calculation of 'format'; it was getting too hairy
to follow.  Add --rfc-3339.
(show_date): Assume format arg is not NULL, which is the case
now.  The default code is moved to 'main'.  This simplifies things
and allows the default to be calculated just once.
2005-09-13 22:08:41 +00:00
Paul Eggert 7846768c6c (my_strftime): Add support for %:z, %::z, %:::z.
Fix bug in formats like %2N.
2005-09-13 22:08:18 +00:00
Paul Eggert 602043e0b8 (Time conversion specifiers, Options for date):
Document date --rfc-3339 and new specifiers %:z, %::z, %:::z.  Use
"date and time" consistently; the old version sometimes said "time
and date".  Fix a minor bug in the documentation for --rfc-2822:
it claimed day-of-month < 10 had leading space, not leading zero.
Use a consistent format for terms like "RFC".
2005-09-13 22:07:58 +00:00
Paul Eggert a6a9495c14 date has a new --rfc-3339 option, and the old --iso-8601
option is deprecated.  date and ls also have new time format
specifiers %:z, %::z, %:::z.
2005-09-13 22:07:34 +00:00
Jim Meyering 2859e85770 tweak comment 2005-09-13 21:25:21 +00:00
Jim Meyering 3e4d8edce9 *** empty log message *** 2005-09-13 21:11:29 +00:00
Jim Meyering 8fc8f946c4 Revert unintended change that removed definitions
of X2REALLOC and X2NREALLOC.
2005-09-13 21:11:25 +00:00
Jim Meyering 700395d652 mostly update copyrights CPPI-1_12 2005-09-13 15:46:12 +00:00
Jim Meyering 37cf570cb8 *** empty log message *** 2005-09-13 15:43:51 +00:00
Jim Meyering fcbf217aa5 escape a $ in a diagnostic 2005-09-13 15:42:45 +00:00
Jim Meyering 0fafb6d2f1 don't check for HAVE_UNISTD_H 2005-09-13 14:58:56 +00:00
Jim Meyering d632b63cc3 *** empty log message *** 2005-09-13 14:14:46 +00:00
Jim Meyering 4c7c6d6e78 (GZIP_ENV): Add --rsyncable option. 2005-09-13 14:14:41 +00:00
Jim Meyering 82d96eac2e *** empty log message *** 2005-09-13 13:54:01 +00:00
Jim Meyering 5ac066ae80 Use AB_INIT (from autobuild). 2005-09-13 13:53:55 +00:00
Jim Meyering 54f2d33cff *** empty log message *** 2005-09-13 13:52:27 +00:00
Jim Meyering 59e9d0b604 . 2005-09-13 13:52:16 +00:00
Jim Meyering 5452065818 *** empty log message *** 2005-09-13 12:12:44 +00:00
Jim Meyering 2922ae7380 Use ARGMATCH_VERIFY, just in case. 2005-09-13 12:12:36 +00:00
Jim Meyering 4034cf6ad5 *** empty log message *** 2005-09-11 07:42:48 +00:00
Jim Meyering 68b1902041 (usage): Remove leading spaces in 2-line
description, so that help2man doesn't mangle it.
2005-09-11 07:42:43 +00:00
Jim Meyering 8890d86818 *** empty log message *** 2005-09-11 07:41:56 +00:00
Jim Meyering bcadcf23a9 . 2005-09-10 14:27:00 +00:00
Jim Meyering aadcf5b2e4 . 2005-09-10 14:16:53 +00:00
Jim Meyering 8650ea82a4 . 2005-09-10 14:07:59 +00:00
Jim Meyering 5c2d345121 Add test for the bug fixed today. 2005-09-10 14:06:29 +00:00
Jim Meyering 0fca40dd6c *** empty log message *** 2005-09-10 14:06:01 +00:00
Jim Meyering 5791c43f91 *** empty log message *** 2005-09-10 13:56:56 +00:00
Jim Meyering 2729563f6b csplit could produce corrupt output, given input lines longer than 8KB
(load_buffer): Don't read from free'd memory
when handling lines longer than the initial buffer length.
(save_to_hold_area): Don't leak the previous hold_area buffer.
Reported by Tristan Miller and Luke Kendall.
* NEWS: Mention this.

(load_buffer): Avoid integer overflow in buffer
size calculations for very long lines.
2005-09-10 13:56:45 +00:00
Jim Meyering d4595fdae9 *** empty log message *** 2005-09-10 07:48:40 +00:00
Paul Eggert c991c0e9f8 Insert missing paren. 2005-09-10 00:08:28 +00:00
Paul Eggert 97f9677790 Regenerate. 2005-09-09 21:21:16 +00:00
Paul Eggert 330bb6eeee Fix typo in previous patch: @command{POSIX} -> @acronym{POSIX}. 2005-09-09 21:16:49 +00:00
Paul Eggert 916bce3a7c (tac_seekable): Store match length in regoff_t, not int. Assume that
negative return values less than -2 represent regoff_t overflow.
2005-09-09 21:11:36 +00:00
Paul Eggert fe041980c8 (SKIP_SOMETHING, find_occurs_in_text):
Store match length in regoff_t,
not int.  Assume that negative return values less than -2
represent regoff_t overflow.
(matcher_error): New function.
(SKIP_SOMETHING, find_occurs_in_text): Use it to report matcher errors.
(alloc_and_compile_regex): No longer any need to worry about
int versus size_t mismatch.
2005-09-09 21:11:07 +00:00
Paul Eggert 0d11284c9e (proc_text): Store match length in regoff_t,
not int.  Assume that negative return values less than -2
represent regoff_t overflow.
(build_type_arg): Check for size_t overflow.
2005-09-09 21:09:48 +00:00
Paul Eggert 35155485bb * src/expr.c (docolon): 64-bit regex fixes. 2005-09-09 21:08:51 +00:00
Paul Eggert 1bd916412d (process_regexp): Store match length in regoff_t,
not int.  Assume that negative return values less than -2
represent regoff_t overflow.
2005-09-09 21:08:19 +00:00
Paul Eggert 3301671de9 Import latest regex module from gnulib, to fix some 64-bit bugs. 2005-09-09 21:07:50 +00:00
Paul Eggert fd4a5b1b53 More nice fixes. 2005-09-09 20:51:55 +00:00
Paul Eggert 263672792f (nice invocation): Document "niceness" versus
"nice value" versus "scheduling priority".
2005-09-09 20:50:51 +00:00
Paul Eggert 3de440458d (main): Hoist errno=0 outside the ifdef. 2005-09-09 20:47:46 +00:00
Paul Eggert 590a4f3a55 (utils_cv_func_setpriority): Simplify the tests.
Define HAVE_NICE rather than NICE_PRIORITY (since a niceness is
not a priority); all uses changed.
2005-09-09 20:47:29 +00:00
Paul Eggert 159fad8d3a Document "niceness" vs "nice value". 2005-09-09 20:46:54 +00:00
Jim Meyering c0b692d232 *** empty log message *** 2005-09-09 07:30:01 +00:00
Jim Meyering da31244e99 (neg-secs2, fill-1, fill-2): Add new tests. 2005-09-09 07:22:27 +00:00
Paul Eggert 09575c108c Use the phrase "niceness" instead of "nice value" to describe
the biased nice value that can go negative.  This corrects
a discrepancy with POSIX, which states that nice values are
nonnegative.
2005-09-08 06:52:09 +00:00
Jim Meyering fdf404cc1e *** empty log message *** 2005-09-07 06:11:11 +00:00
Jim Meyering b962737080 (time_args): Use NULL in place of 0. 2005-09-07 06:08:01 +00:00