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