f5cbccc3f9267577f56b9aba1dce6bd1eb52a507
[gnulib.git] / lib / ChangeLog
1 2000-04-17  Jim Meyering  <meyering@lucent.com>
2
3         * strftime.c (my_strftime) [strftime]: Declare strftime here, since
4         the definition of it to rpl_strftime also defined-away the system's
5         declaration.
6
7 2000-04-15  Jim Meyering  <meyering@lucent.com>
8
9         Use `C' to denote so-called `contiguous' files, the same way
10         that tar does.
11         * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
12         (ftypelet): Use S_ISCTG.
13         From Michael Deutschmann.
14
15 2000-04-14  Jim Meyering  <meyering@lucent.com>
16
17         * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
18
19 2000-04-08  Jim Meyering  <meyering@lucent.com>
20
21         * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
22         names don't conflict.  Reported by Eli Zaretskii.
23
24 2000-03-28  Bruno Haible  <haible@clisp.cons.org>
25
26         * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
27         bug.  Deal with the different error behavior of Irix iconv.
28
29 2000-04-07  Jim Meyering  <meyering@lucent.com>
30
31         * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h,
32         to work around system header problems on AIX 3.2.5.  From Bruno Haible.
33
34 2000-04-05  Jim Meyering  <meyering@lucent.com>
35
36         Portability tweaks required for ultrix4.3.
37         * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
38         * readutmp.c: Include sys/types.h before sys/stat.h.
39         * canon-host.c: Declare strdup.
40         * path-concat.c: Likewise.
41         From John David Anglin.
42
43 2000-04-04  Jim Meyering  <meyering@lucent.com>
44
45         Be more DOS 8.3-friendly.
46         * ref-add.sin: Renamed from ref-add.sed.in.
47         * ref-del.sin: Renamed from ref-del.sed.in.
48         * Makefile.am: Reflect renaming.
49         Reported by Eli Zaretskii.
50
51         Use a temporary file name that won't clash with `charset.alias'
52         in the DOS 8.3 name space.
53         * Makefile.am (charset_tmp): Define.
54         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
55         (uninstall-local): Likewise.
56         Reported by Eli Zaretskii.
57
58 2000-03-29  Paul Eggert  <eggert@twinsun.com>
59
60         * time/strftime.c (my_strftime): Make sure we call the system
61         strftime, not ourselves, when invoking the underlying strftime.
62
63 2000-03-24  Jim Meyering  <meyering@lucent.com>
64
65         * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
66         (charset_alias): Define.
67         (install-exec-local): Factor out common code.
68         (uninstall-local): Split lines longer than 80.
69         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70         (SUFFIXES): Define.
71         (.sed.in.sed): New rule.  Don't redirect directly to $@.
72         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73
74 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
75
76         * config.charset: Output a line containing "Packages using this file".
77         * ref-add.sed.in, ref-del.sed.in: New files.
78         * Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79         ref-del.sed): New rules.
80
81 2000-03-17  Jim Meyering  <meyering@lucent.com>
82
83         * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
84         Otherwise, include <strings.h>
85
86 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87
88         * unicodeio.c (utf8_wctomb): New function.
89         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90         format instead of in UCS-4 with platform dependent endianness.
91
92 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93
94         * lib/savedir.c (savedir): Work even if directory size is
95         negative; this can happen with some screwy NFS configurations.
96
97 2000-03-06  Jim Meyering  <meyering@lucent.com>
98
99         * localcharset.c (get_charset_aliases): Don't try to free file_name
100         if it's NULL (because we ran out of memory).  From Bruno Haible.
101
102 2000-03-05  Jim Meyering  <meyering@lucent.com>
103
104         * localcharset.c ("path-concat.h"): Include.
105         (get_charset_aliases): Use path_concat instead of ANSI string
106         concatenation.
107
108         * unicodeio.h (PARAMS): Define.
109         Use it to guard prototype.
110
111 2000-03-04  Jim Meyering  <meyering@lucent.com>
112
113         * Makefile.am (install-exec-local): Create $(libdir) before installing
114         into it.
115         (uninstall-local): Uncomment this rule so `make distcheck' works
116         once again.
117
118         * unicodeio.c (<errno.h>): Include it.
119         (errno): Declare if not defined.
120
121         * localcharset.c: Add Bruno's comment justifying use of volatile.
122
123         * config.charset: New version, incorporating remarks from a linux
124         i18n mailing list.  From Bruno Haible.
125
126 2000-03-02  Jim Meyering  <meyering@lucent.com>
127
128         * Makefile.am (EXTRA_DIST): Add config.charset.
129
130 2000-03-01  Jim Meyering  <meyering@lucent.com>
131
132         * localcharset.c: Guard some #includes with `#if HAVE_...'.
133         * unicodeio.c: Likewise.
134
135 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
136
137         * config.charset: New file.
138         * localcharset.c: New file.
139         * unicodeio.h, unicodeio.c: New files.
140         * Makefile.am (DEFS): Add -DLIBDIR=...
141         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
142         (noinst_HEADERS): Add unicodeio.h.
143         (all-local, install-exec-local, charset.alias): New targets.
144
145 2000-02-28  Paul Eggert  <eggert@twinsun.com>
146
147         * lib/quotearg.c (ALERT_CHAR): New macro.
148         (quotearg_buffer_restyled): Use it.
149
150 2000-02-27  Jim Meyering  <meyering@lucent.com>
151
152         * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
153         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
154
155         * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
156         not `#if STDC_HEADERS'.
157         Declare malloc if needed.
158
159         * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
160         now that autoconf always defines the HAVE_DECL_ symbols.
161         * human.c: Likewise.
162         * same.c: Likewise.
163         * strtoumax.c: Likewise.
164
165         * backupfile.c: Arrange for cpp to fail if the configure-time
166         declaration check was not run.
167         * hash.c: Likewise.
168         * human.c: Likewise.
169         * same.c: Likewise.
170         * strtoumax.c: Likewise.
171
172         * userspec.c (parse_user_spec): If there is no `:' but there is a `.',
173         then first look up the entire `.'-containing string as a login name.
174
175 2000-02-18  Paul Eggert  <eggert@twinsun.com>
176
177         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
178         (textint): New typedef.
179         (parser_control): Member year changed from int to textint.
180         All uses changed.
181         (YYSTYPE): Removed; replaced by %union with int and textint members.
182         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
183         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
184         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
185         (tSNUMBER, tUNUMBER): Now of type <textintval>.
186         (date, number, to_year): Use width of number in digits, not its value,
187         to determine whether it's a 2-digit year, or a 2-digit time.
188         (yylex): Store number of digits of numeric tokens.
189         Reported by John Kendall.
190
191         (parser_control): Changed from struct parser_control to typedef (for
192         consistency).  All uses changed.
193
194         (tID): Removed; not used.
195         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
196
197 2000-02-14  Paul Eggert  <eggert@twinsun.com>
198
199         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
200         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
201
202 2000-02-12  Jim Meyering  <meyering@lucent.com>
203
204         * userspec.c (ISDIGIT): Define it.
205         (isdigit): Remove definition.
206         (is_number): Use ISDIGIT, not isdigit.
207         <libintl.h>: Include.
208         (_ and N_): Define.
209         (parse_user_spec): Mark translatable strings.
210
211 2000-02-10  Jim Meyering  <meyering@lucent.com>
212
213         With these changes, nanosleep.[ch] are finally enough like the other
214         lib/* replacement files to compile on a few more losing systems.
215
216         * nanosleep.h: Don't include config.h.
217         Remove prototype from declaration of nanosleep.
218         (PARAMS): Remove now-unneeded definition.
219         * nanosleep.c: #undef nanosleep.
220         (rpl_nanosleep): Rename from nanosleep.
221
222 2000-02-03  Jim Meyering  <meyering@lucent.com>
223
224         * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
225         rather than with `#if HAVE_UTMPNAME'.
226
227 2000-02-01  Jim Meyering  <meyering@lucent.com>
228
229         * readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
230
231 2000-01-31  Jim Meyering  <meyering@lucent.com>
232
233         * nanosleep.h (nanosleep): Guard declaration with
234         `#if ! HAVE_DECL_NANOSLEEP'.
235         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
236         the declaration in that vendor's sys/timers.h.
237         Reported by Christian Krackowizer.
238
239         * quotearg.c (ISASCII): Add #undef and move definition to follow
240         inclusion of wctype.h to work around solaris2.6 namespace pollution.
241         (ISPRINT): Likewise.
242         Reported by Tom Tromey.
243
244 2000-01-30  Jim Meyering  <meyering@lucent.com>
245
246         * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding
247         uses of ->ut_name.  The latter doesn't work with new Linux header files
248         where only utmpx.ut_user is declared.
249
250         * readutmp.h (UT_USER): Define.
251
252 2000-01-23  Jim Meyering  <meyering@lucent.com>
253
254         * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
255         obstack.c.
256
257 2000-01-22  Jim Meyering  <meyering@lucent.com>
258
259         * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
260         [! HAVE_DECL_STRTOULL]: Declare strtoull.
261         Required for some AIX systems.  Reported by Christian Krackowizer.
262         [TESTING] (main): New function.
263
264         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
265         * dirname.c (dir_name): Support for DOS-style file names with drive
266         letters.
267
268         * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
269
270         * strverscmp.c (ISDIGIT): Define.
271         (strverscmp): Use ISDIGIT, not isdigit.
272
273 2000-01-17  Paul Eggert  <eggert@twinsun.com>
274
275         * nanosleep.c (nanosleep):
276         Don't use SA_INTERRUPT to decide whether to call sigaction, as
277         POSIX.1 doesn't require SA_INTERRUPT and some systems
278         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
279         it's been part of POSIX.1 since day 1 (in 1988).
280
281 2000-01-17  Jim Meyering  <meyering@lucent.com>
282
283         * interlock: Remove unused file.  Reported by François Pinard.
284
285 2000-01-16  Paul Eggert  <eggert@twinsun.com>
286
287         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
288         alert, backslash, formfeed, and vertical tab unnecessarily in
289         shell quoting style.
290
291 Local Variables:
292 version-control: never
293 End: