24f94f4c60d11178d6cf3449090d31b44ba274f3
[gnulib.git] / lib / ChangeLog
1 2000-07-23  Paul Eggert  <eggert@twinsun.com>
2
3         * mbswidth.c (_XOPEN_SOURCE):
4         Don't define; this causes problems on Solaris 7.
5         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
6
7 2000-07-23  Paul Eggert  <eggert@twinsun.com>
8
9         * lib/quotearg.c:
10         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
11         so that mbstate_t is always defined.
12
13         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
14         be 1 in at least one GCC installation, and this configuration
15         error is likely to be common.  Ignoring MB_LEN_MAX hurts
16         performance on hosts that have mbrtowc but have only unibyte
17         locales, but I assume these hosts are rare.
18
19 2000-07-23  Paul Eggert  <eggert@twinsun.com>
20
21         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
22         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
23         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
24         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
25         invoke multibyte primitives.
26
27 2000-07-23  Jim Meyering  <meyering@lucent.com>
28
29         * basename.c (base_name): Add an assertion.
30
31 2000-07-15  Bruno Haible  <clisp.cons.org>
32
33         * quotearg.c: When the system forces us to redefine mbstate_t,
34         shadow its mbsinit function.
35
36 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
37
38         * mbswidth.h: New file.
39         * mbswidth.c: New file.
40         * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41         (noinst_HEADERS): Add mbswidth.h.
42
43 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
44
45         * config.charset: Add support for FreeBSD. Improve support for HP-UX
46         and IRIX 6.
47
48 2000-07-15  Jim Meyering  <meyering@lucent.com>
49
50         * makepath.c: Include quote.h.
51         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
52         corresponding argument in a `quote (...)' call.
53         Give better diagnostics.
54
55         * Makefile.am (libfetish_a_SOURCES): Add quote.c.
56         (noinst_HEADERS): Add quote.h.
57
58         * quote.c (quote, quote_n): New file.  Two functions taken verbatim
59         from tar's src/misc.c.
60         * quote.h: New file.  Prototypes for same.
61
62 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63
64         From a suggestion by Bruno Haible.
65         * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
67         to decide whether to define the BeOS workaround macro;
68         this adjusts to the change to AC_MBSTATE_T.
69
70 2000-07-13  Paul Eggert  <eggert@twinsun.com>
71
72         * quotearg.h (enum quoting style): New enum clocale_quoting_style.
73
74         * quotearg.c: (quoting_style_args, quoting_style_vals,
75         quotearg_buffer_restyled): Add support for
76         clocale_quoting_style.  Undo previous change to
77         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78         and "{RIGHT QUOTATION MARK}" msgids.
79
80 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81
82         The old behavior of quoting `like this' doesn't look good with
83         newer, ISO-style fonts.  See:
84         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
85
86         Instead, quote "like this" by default.  Let the translator
87         tailor the locale-specific quoting behavior by providing
88         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89
90         * quotearg.c (N_): New macro.
91         (gettext_default): New function.
92         (quotearg_buffer_restyled): Use
93         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95
96 2000-07-09  Jim Meyering  <meyering@lucent.com>
97
98         * Most files: Update copyright dates to include 2000.
99
100 2000-07-08  Jim Meyering  <meyering@lucent.com>
101
102         * xgethostname.c (ENAMETOOLONG): Define to an unlikely value
103         if not defined.
104         (xgethostname): Remove now-unnecessary #ifdef.
105         Move declaration of `err' into loop where it's used.
106
107 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
108
109         * xgethostname.c (xgethostname): Protect against the SunOS5.5 bug
110         by allocating a larger buffer. Test the gethostname return value for
111         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
112         returns an error and ENAMETOOLONG isn't defined.
113
114 2000-07-05  Paul Eggert  <eggert@twinsun.com>
115         and Bruno Haible  <haible@clisp.cons.org>
116
117         * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
118
119 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
120
121         * quotearg.c (struct quoting_options): Simplify quote_these_too
122         dimension.
123
124 2000-07-03  Jim Meyering  <meyering@lucent.com>
125
126         * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
127         Reported by Bruno Haible.
128
129 2000-07-04  Jim Meyering  <meyering@lucent.com>
130
131         * quotearg.c: Make inclusion of <wchar.h> independent of whether
132         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
133         lacks mbrtowc.
134
135 2000-07-03  Paul Eggert  <eggert@twinsun.com>
136         and Bruno Haible  <haible@clisp.cons.org>
137
138         * lib/quotearg.c (mbrtowc):
139         Assign to *pwc, and return 1 only if result is nonzero.
140         (iswprint): Use ISPRINT when substituting our own mbrtowc.
141
142 2000-07-03  Jim Meyering  <meyering@lucent.com>
143
144         * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
145         This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
146         From Bob Proulx.
147
148 2000-07-02  Jim Meyering  <meyering@lucent.com>
149
150         * quotearg.c (mbstate_t): Don't define here.
151
152 2000-07-02  Jim Meyering  <meyering@lucent.com>
153
154         * nanosleep.c (SIGCONT): Define if not already defined.
155
156 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
157
158         * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
159         per change in ../m4/ls-mntd-fs.m4.
160         (read_filesystem_list): Ignore symbolic links.
161
162 2000-06-29  Jim Meyering  <meyering@lucent.com>
163
164         * same.c: Include <string.h> or <strings.h>, as appropriate,
165         for declaration of strcmp.
166
167         * long-options.c: Include <stdlib.h>, for declaration of exit.
168
169         * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
170         Avoid warning by casting result to `char *' to remove `const'.
171
172 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
173
174         * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
175
176 2000-06-26  Paul Eggert  <eggert@twinsun.com>
177
178         savedir now sets errno on failure and invokes xmalloc to get memory.
179         Fix a couple of other minor bugs while we're at it.
180
181         * savedir.c (<unistd.h>): Do not include; there's no need.
182         (NAMLEN): Remove macro.
183         (malloc, realloc): Remove decls.
184         (stpcpy): Likewise.
185         ("xalloc.h"): Include.
186         (NAME_SIZE_DEFAULT): New macro.
187         (savedir): Use xmalloc / xrealloc to allocate memory.
188         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
189         Skip "" directory entries.
190         Use strlen to calculate directory entry length, since the old method
191         is rarely used these days and isn't worth supporting.
192         Don't use a pointer after freeing it.
193         Check for integer overflow when calculating allocation size.
194         Use memcpy to copy entries, instead of stpcpy.
195         Set errno properly when returning NULL.
196         Check for readdir error.
197
198 2000-06-26  Jim Meyering  <meyering@lucent.com>
199
200         * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
201
202 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
203
204         * getusershell.c (xmalloc, xrealloc): Remove functions.
205         Include xalloc.h.
206         Don't include <stdlib.h>.  Don't declare malloc, realloc.
207
208 2000-06-23  Bruno Haible  <haible@clisp.cons.org>
209
210         * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency.
211
212 2000-06-24  Jim Meyering  <meyering@lucent.com>
213
214         * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
215
216 2000-06-21  Jim Meyering  <meyering@lucent.com>
217
218         * getpass.c: New file, from Bruno Haible.  Required for BeOS.
219
220 2000-06-19  Paul Eggert  <eggert@twinsun.com>
221
222         * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
223         (mbrtowc, mbstate_t): Define substitutes if
224         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
225         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
226         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
227
228 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
229
230         * xgetcwd.c (xgetcwd): If the required pathname length is smaller
231         than 1024, return a memory chunk of least possible size, instead
232         of size PATH_MAX + 2. In the loop, increment the size proportionally.
233         Use free/xmalloc instead of xrealloc to avoid copying for very long
234         paths.
235
236 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
237
238         * canon-host.c (canon_host): Use malloc and memcpy to copy an
239         address, not strdup.  Include <stdlib.h> and don't declare free().
240
241 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
242
243         * path-concat.c (path_concat): Don't access dir[-1] if dir is
244         the empty string.
245
246 2000-06-21  Jim Meyering  <meyering@lucent.com>
247
248         * Makefile.am (libfetish_a_SOURCES): Add getstr.c.
249         (noinst_HEADERS): Add getstr.h.
250
251         * getline.c (getstr): Move into a separate file.
252         * getstr.c (getstr): New file, extracted from getline.c, with
253         the following changes: new parameter, delim2; both delim[12]
254         parameters have type `int', not `char'.  The latter would lose
255         with 8-bit delimiters.
256         * getstr.h: New file.
257
258 2000-06-19  Jim Meyering  <meyering@lucent.com>
259
260         * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
261
262 2000-06-18  Jim Meyering  <meyering@lucent.com>
263
264         * mkdir.c: Remove file, due mainly to copyright incompatibility.
265         Besides, these days every porting target provides a mkdir function.
266
267         * strnlen.c: Include memory.h, string.h, and/or strings.h as needed.
268         (this snippet comes from src/system.h).
269
270 2000-06-15  Paul Eggert  <eggert@twinsun.com>
271
272         * human.c (adjust_value): New function.
273         (human_readable_inexact): Apply rounding style even when
274         printing approximate values.
275
276 2000-06-14  Paul Eggert  <eggert@twinsun.com>
277
278         * human.c (human_readable_inexact): Allow an input block
279         size that is not a multiple of the output block size, and vice versa.
280         Reported by Piergiorgio Sartor.
281
282 2000-06-14  Paul Eggert  <eggert@twinsun.com>
283
284         * getdate.y (get_date): Apply relative times after time
285         zone indicator, not before.  Reported by Todd A. Jacobs.
286
287 2000-06-13  Jim Meyering  <meyering@lucent.com>
288
289         * Makefile.am (all-local): Depend on lstat.c and stat.c.
290
291         * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
292
293 2000-06-12  Paul Eggert  <eggert@twinsun.com>
294
295         * xstat.in: Include <stdlib.h> in lstat, to declare "free".
296
297 2000-06-04  Paul Eggert  <eggert@twinsun.com>
298
299         * strnlen.c: Include <config.h> if HAVE_CONFIG_H.
300
301 2000-06-04  Jim Meyering  <meyering@lucent.com>
302
303         * getugroups.c (getugroups): Cast -1 to gid_t, for systems like
304         SunOS4.1.4 for which gid_t is an unsigned type.
305
306 2000-06-03  Jim Meyering  <meyering@lucent.com>
307
308         * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
309
310 2000-05-26  Bruno Haible  <haible@clisp.cons.org>
311
312         * Makefile.am (install-exec-local): On systems with glibc-2.1 or
313         newer, don't install charset.alias.
314         * config.charset: Change the Linux/glibc rules so they become empty
315         on glibc-2.1 or newer.
316
317 2000-06-02  Jim Meyering  <meyering@lucent.com>
318
319         * mountlist.c: Back out last change.  Instead, do this...
320         * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy
321         member using the same `ignore'-testing code.
322         * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
323         fs_type strings.
324         From Mark D. Roth.
325
326 2000-05-29  Jim Meyering  <meyering@lucent.com>
327
328         * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts
329         with the `ignore' attribute.  Based on a patch from Mark D. Roth.
330
331 2000-05-22  Jim Meyering  <meyering@lucent.com>
332
333         * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
334
335 2000-05-18  Jim Meyering  <meyering@lucent.com>
336
337         * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
338         back, too, since it may have been modified by allocate_entry.
339         (hash_delete): Rewrite to use neither the assignment operator
340         nor the comma operator in an if-expression.
341
342 2000-05-15  Paul Eggert  <eggert@twinsun.com>
343
344         * closeout.c:
345         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
346         Remove; no longer needed.
347         "quotearg.h": Add include.
348         (file_name): Do not bother to explicitly initialize to NULL; it's less
349         efficient on some hosts.
350         (close_stdout_status): Remove test as to whether stdout was already
351         closed; it breaks for the case "echo x | sort >&-".
352         Quote file name colons.
353         Do not assume that _("write error") lacks format strings.
354
355 2000-05-15  Jim Meyering  <meyering@lucent.com>
356
357         * version-etc.c (version_etc_copyright): Update the copyright string
358         used in all --version output.
359
360 2000-05-14  Jim Meyering  <meyering@lucent.com>
361
362         * closeout.c (close_stdout_set_file_name): New function.
363         (close_stdout_status): Use new file-scoped global.
364         Return right away if fstat says the stdout file descriptor is invalid.
365         * closeout.h (close_stdout_set_file_name): Declare.
366
367 2000-05-10  Jim Meyering  <meyering@lucent.com>
368
369         * closeout.c [default_exit_status]: New file-scoped variable.
370         (close_stdout_set_status): New function.
371         * closeout.h (close_stdout_set_status): Declare.
372
373 2000-05-08  Jim Meyering  <meyering@lucent.com>
374
375         * long-options.c: Don't include closeout.h.
376         (parse_long_options): Don't call close_stdout for --version.
377
378 2000-05-06  Jim Meyering  <meyering@lucent.com>
379
380         * strnlen.c: Undefine __strnlen and strnlen.
381         [!weak_alias]: Define __strnlen to strnlen.
382
383         * atexit.c: New file, from libiberty.
384
385 2000-05-06  Jim Meyering  <meyering@lucent.com>
386
387         * closeout.c (close_stdout_status): Also check for errors on the
388         stderr stream.
389
390 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
391
392         * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy
393         instead of xmalloc, xrealloc, path_concat.
394         (locale_charset): Treat empty environment variables as absent.
395         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
396
397 2000-05-04  Jim Meyering  <meyering@lucent.com>
398
399         * getopt.c: Update from glibc.
400         * obstack.c: Likewise.
401         * obstack.h: Likewise.
402         * regex.c: Likewise.  NB: K&R compiler support is dropped for this file
403
404         * regex.h: Likewise.
405         * strndup.c: Likewise.
406         * strnlen.c: New file, from glibc.
407
408 2000-05-01  Jim Meyering  <meyering@lucent.com>
409
410         * full-write.c (full_write): Remove `FIXME' part of comment.
411
412 2000-04-29  Jim Meyering  <meyering@lucent.com>
413
414         * path-concat.c: Declare strdup only if it's not defined.
415         * canon-host.c: Likewise.
416
417 2000-04-28  Jim Meyering  <meyering@lucent.com>
418
419         * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid
420         redefinition warning on some systems (HPUX).  Otherwise, regex.h is
421         included first, then limits.h is included by locale.h by libintl.h.
422         From John David Anglin.
423
424 2000-04-25  Jim Meyering  <meyering@lucent.com>
425
426         * makepath.c (S_IRWXUGO): Define.
427         (make_path): Always perform explicit chmod if MODE specifies any
428         of the `special' permission bits.  Prompted by a bug report against
429         install from Mate Wierdl and Joost van Baal.
430
431 2000-04-18  Jim Meyering  <meyering@lucent.com>
432
433         * README: New file.
434
435         * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
436         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
437
438 2000-04-17  Jim Meyering  <meyering@lucent.com>
439
440         * strftime.c (my_strftime) [strftime]: Declare strftime here, since
441         the definition of it to rpl_strftime also defined-away the system's
442         declaration.
443
444 2000-04-15  Jim Meyering  <meyering@lucent.com>
445
446         Use `C' to denote so-called `contiguous' files, the same way
447         that tar does.
448         * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
449         (ftypelet): Use S_ISCTG.
450         From Michael Deutschmann.
451
452 2000-04-14  Jim Meyering  <meyering@lucent.com>
453
454         * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
455
456 2000-04-08  Jim Meyering  <meyering@lucent.com>
457
458         * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
459         names don't conflict.  Reported by Eli Zaretskii.
460
461 2000-03-28  Bruno Haible  <haible@clisp.cons.org>
462
463         * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
464         bug.  Deal with the different error behavior of Irix iconv.
465
466 2000-04-07  Jim Meyering  <meyering@lucent.com>
467
468         * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h,
469         to work around system header problems on AIX 3.2.5.  From Bruno Haible.
470
471 2000-04-05  Jim Meyering  <meyering@lucent.com>
472
473         Portability tweaks required for ultrix4.3.
474         * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
475         * readutmp.c: Include sys/types.h before sys/stat.h.
476         * canon-host.c: Declare strdup.
477         * path-concat.c: Likewise.
478         From John David Anglin.
479
480 2000-04-04  Jim Meyering  <meyering@lucent.com>
481
482         Be more DOS 8.3-friendly.
483         * ref-add.sin: Renamed from ref-add.sed.in.
484         * ref-del.sin: Renamed from ref-del.sed.in.
485         * Makefile.am: Reflect renaming.
486         Reported by Eli Zaretskii.
487
488         Use a temporary file name that won't clash with `charset.alias'
489         in the DOS 8.3 name space.
490         * Makefile.am (charset_tmp): Define.
491         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
492         (uninstall-local): Likewise.
493         Reported by Eli Zaretskii.
494
495 2000-03-29  Paul Eggert  <eggert@twinsun.com>
496
497         * time/strftime.c (my_strftime): Make sure we call the system
498         strftime, not ourselves, when invoking the underlying strftime.
499
500 2000-03-24  Jim Meyering  <meyering@lucent.com>
501
502         * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
503         (charset_alias): Define.
504         (install-exec-local): Factor out common code.
505         (uninstall-local): Split lines longer than 80.
506         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
507         (SUFFIXES): Define.
508         (.sed.in.sed): New rule.  Don't redirect directly to $@.
509         (CLEANFILES): Add ref-add.sed and ref-del.sed.
510
511 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
512
513         * config.charset: Output a line containing "Packages using this file".
514         * ref-add.sed.in, ref-del.sed.in: New files.
515         * Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
516         ref-del.sed): New rules.
517
518 2000-03-17  Jim Meyering  <meyering@lucent.com>
519
520         * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
521         Otherwise, include <strings.h>
522
523 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
524
525         * unicodeio.c (utf8_wctomb): New function.
526         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
527         format instead of in UCS-4 with platform dependent endianness.
528
529 2000-03-07  Paul Eggert  <eggert@twinsun.com>
530
531         * savedir.c (savedir): Work even if directory size is
532         negative; this can happen with some screwy NFS configurations.
533
534 2000-03-06  Jim Meyering  <meyering@lucent.com>
535
536         * localcharset.c (get_charset_aliases): Don't try to free file_name
537         if it's NULL (because we ran out of memory).  From Bruno Haible.
538
539 2000-03-05  Jim Meyering  <meyering@lucent.com>
540
541         * localcharset.c ("path-concat.h"): Include.
542         (get_charset_aliases): Use path_concat instead of ANSI string
543         concatenation.
544
545         * unicodeio.h (PARAMS): Define.
546         Use it to guard prototype.
547
548 2000-03-04  Jim Meyering  <meyering@lucent.com>
549
550         * Makefile.am (install-exec-local): Create $(libdir) before installing
551         into it.
552         (uninstall-local): Uncomment this rule so `make distcheck' works
553         once again.
554
555         * unicodeio.c (<errno.h>): Include it.
556         (errno): Declare if not defined.
557
558         * localcharset.c: Add Bruno's comment justifying use of volatile.
559
560         * config.charset: New version, incorporating remarks from a linux
561         i18n mailing list.  From Bruno Haible.
562
563 2000-03-02  Jim Meyering  <meyering@lucent.com>
564
565         * Makefile.am (EXTRA_DIST): Add config.charset.
566
567 2000-03-01  Jim Meyering  <meyering@lucent.com>
568
569         * localcharset.c: Guard some #includes with `#if HAVE_...'.
570         * unicodeio.c: Likewise.
571
572 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
573
574         * config.charset: New file.
575         * localcharset.c: New file.
576         * unicodeio.h, unicodeio.c: New files.
577         * Makefile.am (DEFS): Add -DLIBDIR=...
578         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
579         (noinst_HEADERS): Add unicodeio.h.
580         (all-local, install-exec-local, charset.alias): New targets.
581
582 2000-02-28  Paul Eggert  <eggert@twinsun.com>
583
584         * quotearg.c (ALERT_CHAR): New macro.
585         (quotearg_buffer_restyled): Use it.
586
587 2000-02-27  Jim Meyering  <meyering@lucent.com>
588
589         * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
590         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
591
592         * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
593         not `#if STDC_HEADERS'.
594         Declare malloc if needed.
595
596         * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
597         now that autoconf always defines the HAVE_DECL_ symbols.
598         * human.c: Likewise.
599         * same.c: Likewise.
600         * strtoumax.c: Likewise.
601
602         * backupfile.c: Arrange for cpp to fail if the configure-time
603         declaration check was not run.
604         * hash.c: Likewise.
605         * human.c: Likewise.
606         * same.c: Likewise.
607         * strtoumax.c: Likewise.
608
609         * userspec.c (parse_user_spec): If there is no `:' but there is a `.',
610         then first look up the entire `.'-containing string as a login name.
611
612 2000-02-18  Paul Eggert  <eggert@twinsun.com>
613
614         * getdate.y: Handle two-digit years with leading zeros correctly.
615         (textint): New typedef.
616         (parser_control): Member year changed from int to textint.
617         All uses changed.
618         (YYSTYPE): Removed; replaced by %union with int and textint members.
619         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
620         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
621         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
622         (tSNUMBER, tUNUMBER): Now of type <textintval>.
623         (date, number, to_year): Use width of number in digits, not its value,
624         to determine whether it's a 2-digit year, or a 2-digit time.
625         (yylex): Store number of digits of numeric tokens.
626         Reported by John Kendall.
627
628         (parser_control): Changed from struct parser_control to typedef (for
629         consistency).  All uses changed.
630
631         (tID): Removed; not used.
632         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
633
634 2000-02-14  Paul Eggert  <eggert@twinsun.com>
635
636         * getpagesize.h (getpagesize): Port to VMS for Alpha;
637         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
638
639 2000-02-12  Jim Meyering  <meyering@lucent.com>
640
641         * userspec.c (ISDIGIT): Define it.
642         (isdigit): Remove definition.
643         (is_number): Use ISDIGIT, not isdigit.
644         <libintl.h>: Include.
645         (_ and N_): Define.
646         (parse_user_spec): Mark translatable strings.
647
648 2000-02-10  Jim Meyering  <meyering@lucent.com>
649
650         With these changes, nanosleep.[ch] are finally enough like the other
651         lib/* replacement files to compile on a few more losing systems.
652
653         * nanosleep.h: Don't include config.h.
654         Remove prototype from declaration of nanosleep.
655         (PARAMS): Remove now-unneeded definition.
656         * nanosleep.c: #undef nanosleep.
657         (rpl_nanosleep): Rename from nanosleep.
658
659 2000-02-03  Jim Meyering  <meyering@lucent.com>
660
661         * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
662         rather than with `#if HAVE_UTMPNAME'.
663
664 2000-02-01  Jim Meyering  <meyering@lucent.com>
665
666         * readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
667
668 2000-01-31  Jim Meyering  <meyering@lucent.com>
669
670         * nanosleep.h (nanosleep): Guard declaration with
671         `#if ! HAVE_DECL_NANOSLEEP'.
672         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
673         the declaration in that vendor's sys/timers.h.
674         Reported by Christian Krackowizer.
675
676         * quotearg.c (ISASCII): Add #undef and move definition to follow
677         inclusion of wctype.h to work around solaris2.6 namespace pollution.
678         (ISPRINT): Likewise.
679         Reported by Tom Tromey.
680
681 2000-01-30  Jim Meyering  <meyering@lucent.com>
682
683         * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding
684         uses of ->ut_name.  The latter doesn't work with new Linux header files
685         where only utmpx.ut_user is declared.
686
687         * readutmp.h (UT_USER): Define.
688
689 2000-01-23  Jim Meyering  <meyering@lucent.com>
690
691         * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
692         obstack.c.
693
694 2000-01-22  Jim Meyering  <meyering@lucent.com>
695
696         * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
697         [! HAVE_DECL_STRTOULL]: Declare strtoull.
698         Required for some AIX systems.  Reported by Christian Krackowizer.
699         [TESTING] (main): New function.
700
701         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
702         * dirname.c (dir_name): Support for DOS-style file names with drive
703         letters.
704
705         * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
706
707         * strverscmp.c (ISDIGIT): Define.
708         (strverscmp): Use ISDIGIT, not isdigit.
709
710 2000-01-17  Paul Eggert  <eggert@twinsun.com>
711
712         * nanosleep.c (nanosleep):
713         Don't use SA_INTERRUPT to decide whether to call sigaction, as
714         POSIX.1 doesn't require SA_INTERRUPT and some systems
715         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
716         it's been part of POSIX.1 since day 1 (in 1988).
717
718 2000-01-17  Jim Meyering  <meyering@lucent.com>
719
720         * interlock: Remove unused file.  Reported by François Pinard.
721
722 2000-01-16  Paul Eggert  <eggert@twinsun.com>
723
724         * quotearg.c (quotearg_buffer_restyled): Do not quote
725         alert, backslash, formfeed, and vertical tab unnecessarily in
726         shell quoting style.
727
728 Local Variables:
729 version-control: never
730 End: