*** empty log message ***
[coreutils.git] / lib / ChangeLog
blob8fe0b54ecc3bae9e7944c20579c1f08324a624b2
1 2001-04-08  Jim Meyering  <meyering@lucent.com>
3         * getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
4         recomputed; that's necessary when the offset spans a DST transition.
5         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
7 2001-04-02  Jim Meyering  <meyering@lucent.com>
9         * regex.h, regex.c: Update from GNU libc.
11 2001-03-19  Paul Eggert  <eggert@twinsun.com>
13         * lib/version-etc.c (version_etc_copyright): Update to 2001.
15 2001-03-16  Paul Eggert  <eggert@twinsun.com>
17         * tempname.c (uint64_t): Define to uintmax_t if
18         not defined, and if UINT64_MAX is not defined.
19         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
20         Reported by John David Anglin.
22 2001-03-10  Bruno Haible  <haible@clisp.cons.org>
24         * localcharset.c (locale_charset): Allow wildcard syntax. Also resolve
25         alias if codeset is empty.
26         * config.charset (BeOS): Use wildcard syntax.
28 2001-03-13  Jim Meyering  <meyering@lucent.com>
30         * path-concat.c (path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]:
31         Don't insert a backslash when concatenating e.g., `C:' and `foo'.
32         From Bruno Haible.
34 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
36         * localcharset.c (locale_charset): Don't use setlocale(LC_CTYPE,NULL).
37         Don't return NULL.
38         * unicodeio.c (print_unicode_char): Simplify accordingly.
40 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
42         * config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
43         support for DOS/DJGPP.
45 2001-02-28  Paul Eggert  <eggert@twinsun.com>
47         * Makefile.am (libfetish_a_SOURCES):
48         Add dup-safer.c, fopen-safer.c.
49         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
51         * dup-safer.c, fopen-safer.c, stdio-safer.h,
52         lib/unistd-safer.h: New files.
54 2001-02-25  Paul Eggert  <eggert@twinsun.com>
56         The mkstemp replacement is taken from glibc 2.2.2, with some
57         portability fixes for use outside glibc, as follows:
59         * tempname.c (struct_stat64): New macro.
60         (direxists, __gen_tempname): Use it.
61         This avoids a portability problem with Solaris 8.
63         * tempname.c (<config.h>): Include if HAVE_CONFIG_H.
64         (<stddef.h>, <stdint.h>, <string.h>):
65         Include only if STDC_HEADERS || _LIBC.
66         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
68         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
69         (__set_errno): Define this macro if <errno.h> doesn't.
70         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
71         Define these macros if <stdio.h> doesn't.
72         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
73         Define these macros if <sys/stat.h>
74         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
75         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
76         __xstat64): Define if not _LIBC.
77         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78         (__gen_tempname): Invoke gettimeofday only if
79         HAVE_GETTIMEOFDAY || _LIBC;
80         otherwise, fall back on plain "time".
81         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83         * mkstemp.c (__GT_FILE): Define to zero if not defined.
85         * mkstemp.c, tempname.c: New files, taken from glibc 2.2.2.
87 2001-02-17  Jim Meyering  <meyering@lucent.com>
89         * strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
90         around included file name.
92         * strnlen.c (__strnlen): Merge in a change from GNU libc.
94         * strftime.c: Update from GNU libc (the only changes were to comments).
96 2001-02-13  Bruno Haible  <haible@clisp.cons.org>
98         * mbswidth.h (mbswidth): Also define as macro, to avoid prototype clash.
100 2001-02-17  Paul Eggert  <eggert@twinsun.com>
102         * mbswidth.c, quotearg.c (mbrtowc, mbsinit):
103         Remove workaround macros for hosts that have mbrtowc but not
104         mbstate_t, as we now insist on proper declarations for both
105         before using mbrtowc.
107 2001-02-17  Jim Meyering  <meyering@lucent.com>
109         * regex.c: Update from libc.
111 2001-02-16  Paul Eggert  <eggert@twinsun.com>
113         * alloca.c (malloc): Undef before defining, since stdlib.h
114         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
115         Reported by Mark Hounschell via Paul Eggert.
117 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
119         * config.charset: Update for FreeBSD 4.2.
121 2001-01-26  Jim Meyering  <meyering@lucent.com>
123         * quotearg.c: Include stddef.h.
124         * quote.c: Include stddef.h.
125         Reported by Axel Kittenberger.
127         * xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
128         line in double quotes so that it evokes a better diagnostic.
129         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
130         Reported by Axel Kittenberger.
132 2001-01-15  Bruno Haible  <haible@clisp.cons.org>
134         * unicodeio.c (print_unicode_char): Cast the second iconv() arg,
135         to avoid a warning.  Add back 'const' to inptr.
137 2001-01-16  Jim Meyering  <meyering@lucent.com>
139         * basename.c: Include <stdio.h>, needed by assert on SunOS4.
140         From Bruno Haible.
142 2001-01-14  Jim Meyering  <meyering@lucent.com>
144         * rename.c: New file.  From Volker Borchert.
145         Include stdlib.h, string.h or strings.h, and xalloc.h.
146         Use strip_trailing_slashes rather than open-coding it.
148 2001-01-03  Paul Eggert  <eggert@twinsun.com>
150         * strftime.c: Sync with glibc time/strftime.c 1.81.
152 2001-01-03  Jim Meyering  <meyering@lucent.com>
154         * unicodeio.c (print_unicode_char): Remove `const' from declaration of
155         local `inptr' to avoid warning with some system declarations of iconv.
157 2000-12-29  Paul Eggert  <eggert@twinsun.com>
159         * modechange.c: Do not assume that mode_t uses the
160         traditional octal encoding.  E.g. "chmod 1 FOO" should set
161         the other-execute bit of FOO even if S_IXOTH != 1.
163         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
164         WOTH, XOTH, ALLM): New macros.
165         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
166          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
167         Use them.
168         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
169         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
170         (mode_compile):
171         No need to use uintmax_t; unsigned long is long enough.
172         Don't bother to get suffix since we don't use it.
174 2000-12-24  Jim Meyering  <meyering@lucent.com>
176         * hash.c (is_prime): Return explicit boolean values.
177         (hash_get_first): Return NULL to appease Irix5.6's 89.
178         Reported by Nelson Beebe.
180 2000-10-31  Bruno Haible  <haible@clisp.cons.org>
182         * localcharset.c (locale_charset): Add support for Win32.
184 2000-12-18  Paul Eggert  <eggert@twinsun.com>
186         * physmem.h, physmem.c: New files.
188         * Makefile.am (libfetish_a_SOURCES): Add physmem.c.
189         (noinst_HEADERS): Add physmem.h.
191         * xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
192         't' for compatibility with Solaris 8 sort.
194 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
196         * config.charset: Add support for BeOS.
198 2000-12-16  Jim Meyering  <meyering@lucent.com>
200         * getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
201         SHELLS_FILE to a file name that's useful on djgpp systems.
202         Include stdlib.h.
203         (ADDITIONAL_DEFAULT_SHELLS): Define.
204         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
205         Based mostly on a patch from Prashant TR.
207 2000-12-16  Jim Meyering  <meyering@lucent.com>
209         This bug had a serious impact on chown: `chown N:M FILE' (for integer
210         N and M) would have treated it like `chown N:N FILE'.
212         * userspec.c (parse_user_spec): Fix typo: s/u/g/.
214 2000-10-31  Bruno Haible  <haible@clisp.cons.org>
216         * config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII,
217         CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257
218         to the list of canonical encodings. Rename EUC-CN to GB2312.
220 2000-12-08  Andreas Schwab  <schwab@suse.de>
222         * mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
223         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
225 2000-12-07  Jim Meyering  <meyering@lucent.com>
227         * stripslash.c (ISSLASH): Define.
228         (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'.
229         From Prashant TR.
231         * dirname.c (FILESYSTEM_PREFIX_LEN): Define.
232         (dir_name_r): Declare this function as static.
233         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
234         manifest itself on a name containing a mix of slashes and
235         backslashes.
236         Make this function work with names starting with a DOS-style
237         drive letter and colon prefix.
238         (dir_name): Append `.' if necessary.
239         Based mostly on patches from Prashant TR and Eli Zaretskii.
241         * dirname.h (dir_name_r): Remove prototype.
243 2000-12-05  Jim Meyering  <meyering@lucent.com>
245         * dirname.c (dir_name_r): Add `const' in a few local declarations.
247 2000-12-04  Jim Meyering  <meyering@lucent.com>
249         * path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
250         Also include memory.h, stdlib.h, unistd.h if appropriate.
251         Reported by Andreas Jaeger (conflicting declaration of malloc).
253 2000-12-02  Jim Meyering  <meyering@lucent.com>
255         * closeout.h: Make idempotent, to avoid some obscure warnings.
257 2000-12-01  Paul Eggert  <eggert@twinsun.com>
259         * memrchr.c: Include <config.h> before any system include file.
261 2000-11-29  Paul Eggert  <eggert@twinsun.com>
263         * dirname.c (dir_name_r): Fix typo: int -> size_t.
265 2000-11-26  Jim Meyering  <meyering@lucent.com>
267         * memcoll.c: Include sys/types.h.  From Werner Almesberger.
269 2000-11-22  Paul Eggert  <eggert@twinsun.com>
271         * strftime.c (my_strftime): Do not invoke mbrlen with a
272         size of (size_t) -1; it's not portable.
274 2000-11-17  Akim Demaille  <akim@epita.fr>
276         * obstack.h: Formatting changes.
277         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
278         prevent type checking.
279         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
280         cast the value to (void *): assigning a `foo *' to a `void *'
281         variable is valid.
282         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
284 2000-11-17  Jim Meyering  <meyering@lucent.com>
286         * strstr.c: Update from GNU libc.
288 2000-11-16  Jim Meyering  <meyering@lucent.com>
290         * strverscmp.c: Incorporate weak-alias-related changes from glibc.
292 2000-11-11  Jim Meyering  <meyering@lucent.com>
294         * error.c: Add a couple #includes, merging from GNU libc version.
296 2000-11-10  Jim Meyering  <meyering@lucent.com>
298         * obstack.h: Update from GNU libc.
299         * obstack.c: Likewise.
301 2000-11-06  Paul Eggert  <eggert@twinsun.com>
303         * getusershell.c (setusershell): Use rewind rather than
304         fseek/fseeko, to avoid configuration hassles with fseeko.
305         Don't bother opening SHELLS_FILE if shellstream is NULL;
306         it's not necessary.
308 2000-11-05  Jim Meyering  <meyering@lucent.com>
310         * makepath.h (make_dir): Declare.
311         * makepath.c (make_dir): Remove `static' attribute.
312         Tweak a comment.
314 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
316         * hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
317         last one in a bucket, advance to the next bucket.
319 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
321         * fnmatch.c: Do not comment out all the code if we are using
322         the GNU C library, because in some cases we are replacing buggy
323         code in the GNU C library itself.
325 2000-10-30  Paul Eggert  <eggert@twinsun.com>
327         * error.h, getline.h, modechange.h:
328         Remove "2000" from Copyright line, as the file hasn't been
329         changed this year other than in the copyright notice.
331         * xalloc.h: Add "2000" to Copyright line, as this file
332         was changed this year.
334 2000-10-30  Paul Eggert  <eggert@twinsun.com>
336         * fnmatch.c (FOLD): Do not assume that characters are unsigned.
337         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
338         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
340 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
342         * regex.h (__restrict_arr): Move definition out of #ifndef block.
343         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
344         doesn't define __restrict_arr.
346 2000-10-29  Jim Meyering  <meyering@lucent.com>
348         * xstat.in: Fix grammar in comment.
350 2000-10-28  Jim Meyering  <meyering@lucent.com>
352         * memchr.c: Update from libc.
353         Adjust for portability:
354         [HAVE_STDLIB_H]: Include stdlib.h.
355         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
356         Undef __memchr, too.
357         [!weak_alias]: Define __memchr to memchr.
359         * regex.c: Update from libc.
360         * regex.h: Likewise.
361         * getopt1.c: Likewise.
362         * memcmp.c: Likewise.
364         * getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
365         Avoid using fseek, when possible -- it's broken by design.
366         Patch by Ulrich Drepper.
368 2000-10-26  Jim Meyering  <meyering@lucent.com>
370         * strftime.c: Update from libc.
372 2000-10-25  Jim Meyering  <meyering@lucent.com>
374         * obstack.c: Update from libc.
376 2000-10-23  Jim Meyering  <meyering@lucent.com>
378         * hard-locale.c (hard_locale): Revert last change -- it was simply
379         wrong.  That set_locale call must not have any side effects.
380         From Paul Eggert.
382 2000-10-22  Jim Meyering  <meyering@lucent.com>
384         * md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
385         [CYCLIC]: Remove now-unused definition.
387         * save-cwd.c (O_DIRECTORY): Define, if needed.
388         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
389         Suggestion from Ulrich Drepper.
391 2000-10-21  Jim Meyering  <meyering@lucent.com>
393         * dirname.c (dir_name_r): New function, factored out of dir_name.
394         (dir_name): Use dir_name_r.
395         * dirname.h (dir_name_r): Declare it.
397 2000-10-21  Jim Meyering  <meyering@lucent.com>
399         * dirname.c (memrchr): Declare if necessary.
400         (dir_name): Remove the restriction that there be no
401         trailing slashes.  Now, this code skips past them, effectively
402         ignoring them.
403         [TEST_DIRNAME] (main): New unit tests.
405         * memrchr.c: New file from GNU libc.
406         Undef __memrchr, too.
407         [!weak_alias]: Define __memrchr to memrchr.
408         Guard weak_alias use with `#ifdef weak_alias'.
410 2000-10-17  Jim Meyering  <meyering@lucent.com>
412         * quote.h (PARAMS): Define and use.
413         Reported by Akim Demaille.
415         * getopt.c: Update from libc.
417 2000-10-16  Jim Meyering  <meyering@lucent.com>
419         * hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to setlocale.
420         From Jan Fedak.
422 2000-09-25  Jim Meyering  <meyering@lucent.com>
424         * md5.h (rol): Define (from GnuPG).
426         * sha.c: Give credit (GnuPG) where due.
427         (M): Use rol rather than open-coding it.
428         Add a FIXME comment.
430 2000-09-21  Jim Meyering  <meyering@lucent.com>
432         * userspec.c (parse_user_spec): Remove debugging printf I'd added.
433         Reported by Michael Stone.
435 2000-09-20  Jim Meyering  <meyering@lucent.com>
437         * Makefile.am (libfetish_a_SOURCES): Add sha.c.
438         (noinst_HEADERS): Add sha.h.
439         Based on code from Scott G. Miller and from GnuPG.
441 2000-09-15  Jim Meyering  <meyering@lucent.com>
443         * regex.c: Update from libc.
445 2000-09-10  Jim Meyering  <meyering@lucent.com>
447         * getopt.c (_getopt_internal): Update from glibc.
449 2000-09-09  Jim Meyering  <meyering@lucent.com>
451         * quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
452         think it should be used as a general replacement for isascii.
453         * fnmatch.c: Likewise.
454         * mbswidth.c: Likewise
455         * regex.c: Likewise.
457         Don't use atoi.
458         * userspec.c: Include sys/param.h and limits.h.
459         Include xstrtol.h.
460         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
461         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
462         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
463         UID, GID.  Check range.
465 2000-09-06  Jim Meyering  <meyering@lucent.com>
467         * getopt.c (_getopt_internal): Update from glibc.
469 2000-08-30  Jim Meyering  <meyering@lucent.com>
471         * strftime.c: Merge in changes from GNU libc.
473 2000-08-26  Jim Meyering  <meyering@lucent.com>
475         * closeout.c: Include "__fpending.h".
476         (close_stdout_status): Return right away if there's nothing to flush.
478         * Makefile.am (noinst_HEADERS): Add __fpending.h.
479         * __fpending.c: New file.
480         * __fpending.h: New file.
482 2000-08-07  Paul Eggert  <eggert@twinsun.com>
484         Standardize on "memory exhausted" instead of "Memory exhausted"
485         or "virtual memory exhausted".
486         * obstack.c (print_and_abort): Use "memory exhausted", not
487         "virtual memory exhausted".
488         * same.c (same_name): Invoke xalloc_die instead of printing
489         our own message.
490         * userspec.c (parse_user_spec): Likewise.
491         * bumpalloc.h: comment fix
492         * same.c, userspec.c: Include xalloc.h.
494         * xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
495         not char *const and pointing to a constant array.
496         * xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
497         (xrealloc): Comment fix.
499         * userspec.c (parse_user_spec):
500         Don't translate a message until just before returning,
501         to avoid unnecessary translation.
503 2000-08-07  Jim Meyering  <meyering@lucent.com>
505         * addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
506         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
507         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
508         getgroups.c, gethostname.c, getopt.h, group-member.c,
509         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
510         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
511         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
512         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
513         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
514         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
515         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
516         yesno.c: Back out Copyright date changes for each file with no change
517         this year.  This eases coordination with other programs using the same
518         source code modules.  From Paul Eggert.
520 2000-08-03  Greg McGary  <greg@mcgary.org>
522         * regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
523         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
524         (EXTEND_BUFFER): Use them.
526 2000-08-01  Jim Meyering  <meyering@lucent.com>
528         * dirname.c (ISSLASH): Define.
529         (BACKSLASH_IS_PATH_SEPARATOR): Define.
530         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
531         both `\' and `/' may be use as path separators.
532         Based on a patch from Prashant TR.
534 2000-07-31  Paul Eggert  <eggert@twinsun.com>
536         * quotearg.c (quotearg_n_options): Don't make the initial
537         slot vector a constant, since it might get modified.
539 2000-07-31  Jim Meyering  <meyering@lucent.com>
541         * xmalloc.c: Use `virtual memory exhausted', not `Memory exhausted'.
542         * obstack.c (print_and_abort): Likewise.
544 2000-07-30  Paul Eggert  <eggert@twinsun.com>
546         * quotearg.c (quotearg_n_options): Preallocate a slot 0
547         buffer, so that the caller can always quote one small
548         component of a "memory exhausted" message in slot 0.
549         From a suggestion by Jim Meyering.
551 2000-07-30  Jim Meyering  <meyering@lucent.com>
553         * makepath.c (make_path): Quote the other instance, too.
555         * quotearg.c (N_STATIC_SLOTVECS): Define.
556         (STATIC_BUF_SIZE): Define.
557         (quotearg_n_options): Use only statically allocated storage when
558         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
559         than STATIC_BUF_SIZE.
561 2000-07-29  Jim Meyering  <meyering@lucent.com>
563         * diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
564         * dirname.c (dir_name): Likewise.
566         * basename.c (base_name): Use ISSLASH rather than comparing against `/'.
568         * dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
569         (dir_name): Assert that there are no trailing slashes.
571 2000-07-18  Bruno Haible  <haible@clisp.cons.org>
573         * mbswidth.h (mbswidth): Add a flags argument.
574         (mbswidth): New declaration.
575         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
576         * mbswidth.c (mbswidth): Add a flags argument.
577         (mbsnwidth): New function.
579 2000-07-24  Jim Meyering  <meyering@lucent.com>
581         * mbswidth.c: Remove useless #else.  From Bruno Haible.
583 2000-07-23  Paul Eggert  <eggert@twinsun.com>
585         * mbswidth.c (_XOPEN_SOURCE):
586         Don't define; this causes problems on Solaris 7.
587         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
589 2000-07-23  Paul Eggert  <eggert@twinsun.com>
591         * quotearg.c:
592         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
593         so that mbstate_t is always defined.
595         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
596         be 1 in at least one GCC installation, and this configuration
597         error is likely to be common.  Ignoring MB_LEN_MAX hurts
598         performance on hosts that have mbrtowc but have only unibyte
599         locales, but I assume these hosts are rare.
601 2000-07-23  Paul Eggert  <eggert@twinsun.com>
603         * quotearg.c: Streamline by invoking multibyte code only if needed.
604         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
605         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
606         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
607         invoke multibyte primitives.
609 2000-07-23  Jim Meyering  <meyering@lucent.com>
611         * basename.c (base_name): Add an assertion.
613 2000-07-15  Bruno Haible  <clisp.cons.org>
615         * quotearg.c: When the system forces us to redefine mbstate_t,
616         shadow its mbsinit function.
618 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
620         * mbswidth.h: New file.
621         * mbswidth.c: New file.
622         * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
623         (noinst_HEADERS): Add mbswidth.h.
625 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
627         * config.charset: Add support for FreeBSD. Improve support for HP-UX
628         and IRIX 6.
630 2000-07-15  Jim Meyering  <meyering@lucent.com>
632         * makepath.c: Include quote.h.
633         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
634         corresponding argument in a `quote (...)' call.
635         Give better diagnostics.
637         * Makefile.am (libfetish_a_SOURCES): Add quote.c.
638         (noinst_HEADERS): Add quote.h.
640         * quote.c (quote, quote_n): New file.  Two functions taken verbatim
641         from tar's src/misc.c.
642         * quote.h: New file.  Prototypes for same.
644 2000-07-10  Paul Eggert  <eggert@twinsun.com>
646         From a suggestion by Bruno Haible.
647         * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
648         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
649         to decide whether to define the BeOS workaround macro;
650         this adjusts to the change to AC_MBSTATE_T.
652 2000-07-13  Paul Eggert  <eggert@twinsun.com>
654         * quotearg.h (enum quoting style): New enum clocale_quoting_style.
656         * quotearg.c (quoting_style_args, quoting_style_vals,
657         quotearg_buffer_restyled): Add support for
658         clocale_quoting_style.  Undo previous change to
659         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
660         and "{RIGHT QUOTATION MARK}" msgids.
662 2000-07-05  Paul Eggert  <eggert@twinsun.com>
664         The old behavior of quoting `like this' doesn't look good with
665         newer, ISO-style fonts.  See:
666         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
668         Instead, quote "like this" by default.  Let the translator
669         tailor the locale-specific quoting behavior by providing
670         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
672         * quotearg.c (N_): New macro.
673         (gettext_default): New function.
674         (quotearg_buffer_restyled): Use
675         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
676         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
678 2000-07-09  Jim Meyering  <meyering@lucent.com>
680         * Most files: Update copyright dates to include 2000.
682 2000-07-08  Jim Meyering  <meyering@lucent.com>
684         * xgethostname.c (ENAMETOOLONG): Define to an unlikely value
685         if not defined.
686         (xgethostname): Remove now-unnecessary #ifdef.
687         Move declaration of `err' into loop where it's used.
689 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
691         * xgethostname.c (xgethostname): Protect against the SunOS5.5 bug
692         by allocating a larger buffer. Test the gethostname return value for
693         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
694         returns an error and ENAMETOOLONG isn't defined.
696 2000-07-05  Paul Eggert  <eggert@twinsun.com>
697         and Bruno Haible  <haible@clisp.cons.org>
699         * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
701 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
703         * quotearg.c (struct quoting_options): Simplify quote_these_too
704         dimension.
706 2000-07-03  Jim Meyering  <meyering@lucent.com>
708         * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
709         Reported by Bruno Haible.
711 2000-07-04  Jim Meyering  <meyering@lucent.com>
713         * quotearg.c: Make inclusion of <wchar.h> independent of whether
714         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
715         lacks mbrtowc.
717 2000-07-03  Paul Eggert  <eggert@twinsun.com>
718         and Bruno Haible  <haible@clisp.cons.org>
720         * quotearg.c (mbrtowc):
721         Assign to *pwc, and return 1 only if result is nonzero.
722         (iswprint): Use ISPRINT when substituting our own mbrtowc.
724 2000-07-03  Jim Meyering  <meyering@lucent.com>
726         * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
727         This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
728         From Bob Proulx.
730 2000-07-02  Jim Meyering  <meyering@lucent.com>
732         * quotearg.c (mbstate_t): Don't define here.
734 2000-07-02  Jim Meyering  <meyering@lucent.com>
736         * nanosleep.c (SIGCONT): Define if not already defined.
738 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
740         * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
741         per change in ../m4/ls-mntd-fs.m4.
742         (read_filesystem_list): Ignore symbolic links.
744 2000-06-29  Jim Meyering  <meyering@lucent.com>
746         * same.c: Include <string.h> or <strings.h>, as appropriate,
747         for declaration of strcmp.
749         * long-options.c: Include <stdlib.h>, for declaration of exit.
751         * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
752         Avoid warning by casting result to `char *' to remove `const'.
754 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
756         * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
758 2000-06-26  Paul Eggert  <eggert@twinsun.com>
760         savedir now sets errno on failure and invokes xmalloc to get memory.
761         Fix a couple of other minor bugs while we're at it.
763         * savedir.c (<unistd.h>): Do not include; there's no need.
764         (NAMLEN): Remove macro.
765         (malloc, realloc): Remove decls.
766         (stpcpy): Likewise.
767         ("xalloc.h"): Include.
768         (NAME_SIZE_DEFAULT): New macro.
769         (savedir): Use xmalloc / xrealloc to allocate memory.
770         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
771         Skip "" directory entries.
772         Use strlen to calculate directory entry length, since the old method
773         is rarely used these days and isn't worth supporting.
774         Don't use a pointer after freeing it.
775         Check for integer overflow when calculating allocation size.
776         Use memcpy to copy entries, instead of stpcpy.
777         Set errno properly when returning NULL.
778         Check for readdir error.
780 2000-06-26  Jim Meyering  <meyering@lucent.com>
782         * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
784 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
786         * getusershell.c (xmalloc, xrealloc): Remove functions.
787         Include xalloc.h.
788         Don't include <stdlib.h>.  Don't declare malloc, realloc.
790 2000-06-23  Bruno Haible  <haible@clisp.cons.org>
792         * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency.
794 2000-06-24  Jim Meyering  <meyering@lucent.com>
796         * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
798 2000-06-21  Jim Meyering  <meyering@lucent.com>
800         * getpass.c: New file, from Bruno Haible.  Required for BeOS.
802 2000-06-19  Paul Eggert  <eggert@twinsun.com>
804         * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
805         (mbrtowc, mbstate_t): Define substitutes if
806         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
807         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
808         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
810 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
812         * xgetcwd.c (xgetcwd): If the required pathname length is smaller
813         than 1024, return a memory chunk of least possible size, instead
814         of size PATH_MAX + 2. In the loop, increment the size proportionally.
815         Use free/xmalloc instead of xrealloc to avoid copying for very long
816         paths.
818 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
820         * canon-host.c (canon_host): Use malloc and memcpy to copy an
821         address, not strdup.  Include <stdlib.h> and don't declare free().
823 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
825         * path-concat.c (path_concat): Don't access dir[-1] if dir is
826         the empty string.
828 2000-06-21  Jim Meyering  <meyering@lucent.com>
830         * Makefile.am (libfetish_a_SOURCES): Add getstr.c.
831         (noinst_HEADERS): Add getstr.h.
833         * getline.c (getstr): Move into a separate file.
834         * getstr.c (getstr): New file, extracted from getline.c, with
835         the following changes: new parameter, delim2; both delim[12]
836         parameters have type `int', not `char'.  The latter would lose
837         with 8-bit delimiters.
838         * getstr.h: New file.
840 2000-06-19  Jim Meyering  <meyering@lucent.com>
842         * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
844 2000-06-18  Jim Meyering  <meyering@lucent.com>
846         * mkdir.c: Remove file, due mainly to copyright incompatibility.
847         Besides, these days every porting target provides a mkdir function.
849         * strnlen.c: Include memory.h, string.h, and/or strings.h as needed.
850         (this snippet comes from src/system.h).
852 2000-06-15  Paul Eggert  <eggert@twinsun.com>
854         * human.c (adjust_value): New function.
855         (human_readable_inexact): Apply rounding style even when
856         printing approximate values.
858 2000-06-14  Paul Eggert  <eggert@twinsun.com>
860         * human.c (human_readable_inexact): Allow an input block
861         size that is not a multiple of the output block size, and vice versa.
862         Reported by Piergiorgio Sartor.
864 2000-06-14  Paul Eggert  <eggert@twinsun.com>
866         * getdate.y (get_date): Apply relative times after time
867         zone indicator, not before.  Reported by Todd A. Jacobs.
869 2000-06-13  Jim Meyering  <meyering@lucent.com>
871         * Makefile.am (all-local): Depend on lstat.c and stat.c.
873         * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
875 2000-06-12  Paul Eggert  <eggert@twinsun.com>
877         * xstat.in: Include <stdlib.h> in lstat, to declare "free".
879 2000-06-04  Paul Eggert  <eggert@twinsun.com>
881         * strnlen.c: Include <config.h> if HAVE_CONFIG_H.
883 2000-06-04  Jim Meyering  <meyering@lucent.com>
885         * getugroups.c (getugroups): Cast -1 to gid_t, for systems like
886         SunOS4.1.4 for which gid_t is an unsigned type.
888 2000-06-03  Jim Meyering  <meyering@lucent.com>
890         * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
892 2000-05-26  Bruno Haible  <haible@clisp.cons.org>
894         * Makefile.am (install-exec-local): On systems with glibc-2.1 or
895         newer, don't install charset.alias.
896         * config.charset: Change the Linux/glibc rules so they become empty
897         on glibc-2.1 or newer.
899 2000-06-02  Jim Meyering  <meyering@lucent.com>
901         * mountlist.c: Back out last change.  Instead, do this...
902         * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy
903         member using the same `ignore'-testing code.
904         * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
905         fs_type strings.
906         From Mark D. Roth.
908 2000-05-29  Jim Meyering  <meyering@lucent.com>
910         * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts
911         with the `ignore' attribute.  Based on a patch from Mark D. Roth.
913 2000-05-22  Jim Meyering  <meyering@lucent.com>
915         * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
917 2000-05-18  Jim Meyering  <meyering@lucent.com>
919         * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
920         back, too, since it may have been modified by allocate_entry.
921         (hash_delete): Rewrite to use neither the assignment operator
922         nor the comma operator in an if-expression.
924 2000-05-15  Paul Eggert  <eggert@twinsun.com>
926         * closeout.c:
927         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
928         Remove; no longer needed.
929         "quotearg.h": Add include.
930         (file_name): Do not bother to explicitly initialize to NULL; it's less
931         efficient on some hosts.
932         (close_stdout_status): Remove test as to whether stdout was already
933         closed; it breaks for the case "echo x | sort >&-".
934         Quote file name colons.
935         Do not assume that _("write error") lacks format strings.
937 2000-05-15  Jim Meyering  <meyering@lucent.com>
939         * version-etc.c (version_etc_copyright): Update the copyright string
940         used in all --version output.
942 2000-05-14  Jim Meyering  <meyering@lucent.com>
944         * closeout.c (close_stdout_set_file_name): New function.
945         (close_stdout_status): Use new file-scoped global.
946         Return right away if fstat says the stdout file descriptor is invalid.
947         * closeout.h (close_stdout_set_file_name): Declare.
949 2000-05-10  Jim Meyering  <meyering@lucent.com>
951         * closeout.c [default_exit_status]: New file-scoped variable.
952         (close_stdout_set_status): New function.
953         * closeout.h (close_stdout_set_status): Declare.
955 2000-05-08  Jim Meyering  <meyering@lucent.com>
957         * long-options.c: Don't include closeout.h.
958         (parse_long_options): Don't call close_stdout for --version.
960 2000-05-06  Jim Meyering  <meyering@lucent.com>
962         * strnlen.c: Undefine __strnlen and strnlen.
963         [!weak_alias]: Define __strnlen to strnlen.
965         * atexit.c: New file, from libiberty.
967 2000-05-06  Jim Meyering  <meyering@lucent.com>
969         * closeout.c (close_stdout_status): Also check for errors on the
970         stderr stream.
972 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
974         * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy
975         instead of xmalloc, xrealloc, path_concat.
976         (locale_charset): Treat empty environment variables as absent.
977         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
979 2000-05-04  Jim Meyering  <meyering@lucent.com>
981         * getopt.c: Update from glibc.
982         * obstack.c: Likewise.
983         * obstack.h: Likewise.
984         * regex.c: Likewise.  NB: K&R compiler support is dropped for this file
986         * regex.h: Likewise.
987         * strndup.c: Likewise.
988         * strnlen.c: New file, from glibc.
990 2000-05-01  Jim Meyering  <meyering@lucent.com>
992         * full-write.c (full_write): Remove `FIXME' part of comment.
994 2000-04-29  Jim Meyering  <meyering@lucent.com>
996         * path-concat.c: Declare strdup only if it's not defined.
997         * canon-host.c: Likewise.
999 2000-04-28  Jim Meyering  <meyering@lucent.com>
1001         * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid
1002         redefinition warning on some systems (HPUX).  Otherwise, regex.h is
1003         included first, then limits.h is included by locale.h by libintl.h.
1004         From John David Anglin.
1006 2000-04-25  Jim Meyering  <meyering@lucent.com>
1008         * makepath.c (S_IRWXUGO): Define.
1009         (make_path): Always perform explicit chmod if MODE specifies any
1010         of the `special' permission bits.  Prompted by a bug report against
1011         install from Mate Wierdl and Joost van Baal.
1013 2000-04-18  Jim Meyering  <meyering@lucent.com>
1015         * README: New file.
1017         * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
1018         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
1020 2000-04-17  Jim Meyering  <meyering@lucent.com>
1022         * strftime.c (my_strftime) [strftime]: Declare strftime here, since
1023         the definition of it to rpl_strftime also defined-away the system's
1024         declaration.
1026 2000-04-15  Jim Meyering  <meyering@lucent.com>
1028         Use `C' to denote so-called `contiguous' files, the same way
1029         that tar does.
1030         * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
1031         (ftypelet): Use S_ISCTG.
1032         From Michael Deutschmann.
1034 2000-04-14  Jim Meyering  <meyering@lucent.com>
1036         * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
1038 2000-04-08  Jim Meyering  <meyering@lucent.com>
1040         * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
1041         names don't conflict.  Reported by Eli Zaretskii.
1043 2000-03-28  Bruno Haible  <haible@clisp.cons.org>
1045         * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
1046         bug.  Deal with the different error behavior of Irix iconv.
1048 2000-04-07  Jim Meyering  <meyering@lucent.com>
1050         * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h,
1051         to work around system header problems on AIX 3.2.5.  From Bruno Haible.
1053 2000-04-05  Jim Meyering  <meyering@lucent.com>
1055         Portability tweaks required for ultrix4.3.
1056         * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
1057         * readutmp.c: Include sys/types.h before sys/stat.h.
1058         * canon-host.c: Declare strdup.
1059         * path-concat.c: Likewise.
1060         From John David Anglin.
1062 2000-04-04  Jim Meyering  <meyering@lucent.com>
1064         Be more DOS 8.3-friendly.
1065         * ref-add.sin: Renamed from ref-add.sed.in.
1066         * ref-del.sin: Renamed from ref-del.sed.in.
1067         * Makefile.am: Reflect renaming.
1068         Reported by Eli Zaretskii.
1070         Use a temporary file name that won't clash with `charset.alias'
1071         in the DOS 8.3 name space.
1072         * Makefile.am (charset_tmp): Define.
1073         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
1074         (uninstall-local): Likewise.
1075         Reported by Eli Zaretskii.
1077 2000-03-29  Paul Eggert  <eggert@twinsun.com>
1079         * time/strftime.c (my_strftime): Make sure we call the system
1080         strftime, not ourselves, when invoking the underlying strftime.
1082 2000-03-24  Jim Meyering  <meyering@lucent.com>
1084         * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
1085         (charset_alias): Define.
1086         (install-exec-local): Factor out common code.
1087         (uninstall-local): Split lines longer than 80.
1088         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
1089         (SUFFIXES): Define.
1090         (.sed.in.sed): New rule.  Don't redirect directly to $@.
1091         (CLEANFILES): Add ref-add.sed and ref-del.sed.
1093 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
1095         * config.charset: Output a line containing "Packages using this file".
1096         * ref-add.sed.in, ref-del.sed.in: New files.
1097         * Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
1098         ref-del.sed): New rules.
1100 2000-03-17  Jim Meyering  <meyering@lucent.com>
1102         * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
1103         Otherwise, include <strings.h>
1105 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
1107         * unicodeio.c (utf8_wctomb): New function.
1108         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
1109         format instead of in UCS-4 with platform dependent endianness.
1111 2000-03-07  Paul Eggert  <eggert@twinsun.com>
1113         * savedir.c (savedir): Work even if directory size is
1114         negative; this can happen with some screwy NFS configurations.
1116 2000-03-06  Jim Meyering  <meyering@lucent.com>
1118         * localcharset.c (get_charset_aliases): Don't try to free file_name
1119         if it's NULL (because we ran out of memory).  From Bruno Haible.
1121 2000-03-05  Jim Meyering  <meyering@lucent.com>
1123         * localcharset.c ("path-concat.h"): Include.
1124         (get_charset_aliases): Use path_concat instead of ANSI string
1125         concatenation.
1127         * unicodeio.h (PARAMS): Define.
1128         Use it to guard prototype.
1130 2000-03-04  Jim Meyering  <meyering@lucent.com>
1132         * Makefile.am (install-exec-local): Create $(libdir) before installing
1133         into it.
1134         (uninstall-local): Uncomment this rule so `make distcheck' works
1135         once again.
1137         * unicodeio.c (<errno.h>): Include it.
1138         (errno): Declare if not defined.
1140         * localcharset.c: Add Bruno's comment justifying use of volatile.
1142         * config.charset: New version, incorporating remarks from a linux
1143         i18n mailing list.  From Bruno Haible.
1145 2000-03-02  Jim Meyering  <meyering@lucent.com>
1147         * Makefile.am (EXTRA_DIST): Add config.charset.
1149 2000-03-01  Jim Meyering  <meyering@lucent.com>
1151         * localcharset.c: Guard some #includes with `#if HAVE_...'.
1152         * unicodeio.c: Likewise.
1154 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
1156         * config.charset: New file.
1157         * localcharset.c: New file.
1158         * unicodeio.h, unicodeio.c: New files.
1159         * Makefile.am (DEFS): Add -DLIBDIR=...
1160         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
1161         (noinst_HEADERS): Add unicodeio.h.
1162         (all-local, install-exec-local, charset.alias): New targets.
1164 2000-02-28  Paul Eggert  <eggert@twinsun.com>
1166         * quotearg.c (ALERT_CHAR): New macro.
1167         (quotearg_buffer_restyled): Use it.
1169 2000-02-27  Jim Meyering  <meyering@lucent.com>
1171         * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
1172         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
1174         * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
1175         not `#if STDC_HEADERS'.
1176         Declare malloc if needed.
1178         * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
1179         now that autoconf always defines the HAVE_DECL_ symbols.
1180         * human.c: Likewise.
1181         * same.c: Likewise.
1182         * strtoumax.c: Likewise.
1184         * backupfile.c: Arrange for cpp to fail if the configure-time
1185         declaration check was not run.
1186         * hash.c: Likewise.
1187         * human.c: Likewise.
1188         * same.c: Likewise.
1189         * strtoumax.c: Likewise.
1191         * userspec.c (parse_user_spec): If there is no `:' but there is a `.',
1192         then first look up the entire `.'-containing string as a login name.
1194 2000-02-18  Paul Eggert  <eggert@twinsun.com>
1196         * getdate.y: Handle two-digit years with leading zeros correctly.
1197         (textint): New typedef.
1198         (parser_control): Member year changed from int to textint.
1199         All uses changed.
1200         (YYSTYPE): Removed; replaced by %union with int and textint members.
1201         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
1202         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
1203         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
1204         (tSNUMBER, tUNUMBER): Now of type <textintval>.
1205         (date, number, to_year): Use width of number in digits, not its value,
1206         to determine whether it's a 2-digit year, or a 2-digit time.
1207         (yylex): Store number of digits of numeric tokens.
1208         Reported by John Kendall.
1210         (parser_control): Changed from struct parser_control to typedef (for
1211         consistency).  All uses changed.
1213         (tID): Removed; not used.
1214         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
1216 2000-02-14  Paul Eggert  <eggert@twinsun.com>
1218         * getpagesize.h (getpagesize): Port to VMS for Alpha;
1219         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
1221 2000-02-12  Jim Meyering  <meyering@lucent.com>
1223         * userspec.c (ISDIGIT): Define it.
1224         (isdigit): Remove definition.
1225         (is_number): Use ISDIGIT, not isdigit.
1226         <libintl.h>: Include.
1227         (_ and N_): Define.
1228         (parse_user_spec): Mark translatable strings.
1230 2000-02-10  Jim Meyering  <meyering@lucent.com>
1232         With these changes, nanosleep.[ch] are finally enough like the other
1233         lib/* replacement files to compile on a few more losing systems.
1235         * nanosleep.h: Don't include config.h.
1236         Remove prototype from declaration of nanosleep.
1237         (PARAMS): Remove now-unneeded definition.
1238         * nanosleep.c: #undef nanosleep.
1239         (rpl_nanosleep): Rename from nanosleep.
1241 2000-02-03  Jim Meyering  <meyering@lucent.com>
1243         * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
1244         rather than with `#if HAVE_UTMPNAME'.
1246 2000-02-01  Jim Meyering  <meyering@lucent.com>
1248         * readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
1250 2000-01-31  Jim Meyering  <meyering@lucent.com>
1252         * nanosleep.h (nanosleep): Guard declaration with
1253         `#if ! HAVE_DECL_NANOSLEEP'.
1254         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
1255         the declaration in that vendor's sys/timers.h.
1256         Reported by Christian Krackowizer.
1258         * quotearg.c (ISASCII): Add #undef and move definition to follow
1259         inclusion of wctype.h to work around solaris2.6 namespace pollution.
1260         (ISPRINT): Likewise.
1261         Reported by Tom Tromey.
1263 2000-01-30  Jim Meyering  <meyering@lucent.com>
1265         * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding
1266         uses of ->ut_name.  The latter doesn't work with new Linux header files
1267         where only utmpx.ut_user is declared.
1269         * readutmp.h (UT_USER): Define.
1271 2000-01-23  Jim Meyering  <meyering@lucent.com>
1273         * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
1274         obstack.c.
1276 2000-01-22  Jim Meyering  <meyering@lucent.com>
1278         * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
1279         [! HAVE_DECL_STRTOULL]: Declare strtoull.
1280         Required for some AIX systems.  Reported by Christian Krackowizer.
1281         [TESTING] (main): New function.
1283         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
1284         * dirname.c (dir_name): Support for DOS-style file names with drive
1285         letters.
1287         * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
1289         * strverscmp.c (ISDIGIT): Define.
1290         (strverscmp): Use ISDIGIT, not isdigit.
1292 2000-01-17  Paul Eggert  <eggert@twinsun.com>
1294         * nanosleep.c (nanosleep):
1295         Don't use SA_INTERRUPT to decide whether to call sigaction, as
1296         POSIX.1 doesn't require SA_INTERRUPT and some systems
1297         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
1298         it's been part of POSIX.1 since day 1 (in 1988).
1300 2000-01-17  Jim Meyering  <meyering@lucent.com>
1302         * interlock: Remove unused file.  Reported by François Pinard.
1304 2000-01-16  Paul Eggert  <eggert@twinsun.com>
1306         * quotearg.c (quotearg_buffer_restyled): Do not quote
1307         alert, backslash, formfeed, and vertical tab unnecessarily in
1308         shell quoting style.
1310 Local Variables:
1311 version-control: never
1312 End: