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