1 2000-04-17 Jim Meyering <meyering@lucent.com>
3 * strftime.c (my_strftime) [strftime]: Declare strftime here, since
4 the definition of it to rpl_strftime also defined-away the system's
7 2000-04-15 Jim Meyering <meyering@lucent.com>
9 Use `C' to denote so-called `contiguous' files, the same way
11 * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
12 (ftypelet): Use S_ISCTG.
13 From Michael Deutschmann.
15 2000-04-14 Jim Meyering <meyering@lucent.com>
17 * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
19 2000-04-08 Jim Meyering <meyering@lucent.com>
21 * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
22 names don't conflict. Reported by Eli Zaretskii.
24 2000-03-28 Bruno Haible <haible@clisp.cons.org>
26 * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
27 bug. Deal with the different error behavior of Irix iconv.
29 2000-04-07 Jim Meyering <meyering@lucent.com>
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.
34 2000-04-05 Jim Meyering <meyering@lucent.com>
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.
43 2000-04-04 Jim Meyering <meyering@lucent.com>
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.
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.
58 2000-03-29 Paul Eggert <eggert@twinsun.com>
60 * time/strftime.c (my_strftime): Make sure we call the system
61 strftime, not ourselves, when invoking the underlying strftime.
63 2000-03-24 Jim Meyering <meyering@lucent.com>
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)
71 (.sed.in.sed): New rule. Don't redirect directly to $@.
72 (CLEANFILES): Add ref-add.sed and ref-del.sed.
74 2000-03-19 Bruno Haible <haible@clisp.cons.org>
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.
81 2000-03-17 Jim Meyering <meyering@lucent.com>
83 * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
84 Otherwise, include <strings.h>
86 2000-03-17 Bruno Haible <haible@clisp.cons.org>
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.
92 2000-03-07 Paul Eggert <eggert@twinsun.com>
94 * lib/savedir.c (savedir): Work even if directory size is
95 negative; this can happen with some screwy NFS configurations.
97 2000-03-06 Jim Meyering <meyering@lucent.com>
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.
102 2000-03-05 Jim Meyering <meyering@lucent.com>
104 * localcharset.c ("path-concat.h"): Include.
105 (get_charset_aliases): Use path_concat instead of ANSI string
108 * unicodeio.h (PARAMS): Define.
109 Use it to guard prototype.
111 2000-03-04 Jim Meyering <meyering@lucent.com>
113 * Makefile.am (install-exec-local): Create $(libdir) before installing
115 (uninstall-local): Uncomment this rule so `make distcheck' works
118 * unicodeio.c (<errno.h>): Include it.
119 (errno): Declare if not defined.
121 * localcharset.c: Add Bruno's comment justifying use of volatile.
123 * config.charset: New version, incorporating remarks from a linux
124 i18n mailing list. From Bruno Haible.
126 2000-03-02 Jim Meyering <meyering@lucent.com>
128 * Makefile.am (EXTRA_DIST): Add config.charset.
130 2000-03-01 Jim Meyering <meyering@lucent.com>
132 * localcharset.c: Guard some #includes with `#if HAVE_...'.
133 * unicodeio.c: Likewise.
135 2000-02-02 Bruno Haible <haible@clisp.cons.org>
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.
145 2000-02-28 Paul Eggert <eggert@twinsun.com>
147 * lib/quotearg.c (ALERT_CHAR): New macro.
148 (quotearg_buffer_restyled): Use it.
150 2000-02-27 Jim Meyering <meyering@lucent.com>
152 * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
153 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
155 * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
156 not `#if STDC_HEADERS'.
157 Declare malloc if needed.
159 * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
160 now that autoconf always defines the HAVE_DECL_ symbols.
163 * strtoumax.c: Likewise.
165 * backupfile.c: Arrange for cpp to fail if the configure-time
166 declaration check was not run.
170 * strtoumax.c: Likewise.
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.
175 2000-02-18 Paul Eggert <eggert@twinsun.com>
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.
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.
191 (parser_control): Changed from struct parser_control to typedef (for
192 consistency). All uses changed.
194 (tID): Removed; not used.
195 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
197 2000-02-14 Paul Eggert <eggert@twinsun.com>
199 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
200 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
202 2000-02-12 Jim Meyering <meyering@lucent.com>
204 * userspec.c (ISDIGIT): Define it.
205 (isdigit): Remove definition.
206 (is_number): Use ISDIGIT, not isdigit.
207 <libintl.h>: Include.
209 (parse_user_spec): Mark translatable strings.
211 2000-02-10 Jim Meyering <meyering@lucent.com>
213 With these changes, nanosleep.[ch] are finally enough like the other
214 lib/* replacement files to compile on a few more losing systems.
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.
222 2000-02-03 Jim Meyering <meyering@lucent.com>
224 * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
225 rather than with `#if HAVE_UTMPNAME'.
227 2000-02-01 Jim Meyering <meyering@lucent.com>
229 * readutmp.h (UT_USER): Add parens. From Andreas Schwab.
231 2000-01-31 Jim Meyering <meyering@lucent.com>
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.
239 * quotearg.c (ISASCII): Add #undef and move definition to follow
240 inclusion of wctype.h to work around solaris2.6 namespace pollution.
242 Reported by Tom Tromey.
244 2000-01-30 Jim Meyering <meyering@lucent.com>
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.
250 * readutmp.h (UT_USER): Define.
252 2000-01-23 Jim Meyering <meyering@lucent.com>
254 * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
257 2000-01-22 Jim Meyering <meyering@lucent.com>
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.
264 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
265 * dirname.c (dir_name): Support for DOS-style file names with drive
268 * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
270 * strverscmp.c (ISDIGIT): Define.
271 (strverscmp): Use ISDIGIT, not isdigit.
273 2000-01-17 Paul Eggert <eggert@twinsun.com>
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).
281 2000-01-17 Jim Meyering <meyering@lucent.com>
283 * interlock: Remove unused file. Reported by François Pinard.
285 2000-01-16 Paul Eggert <eggert@twinsun.com>
287 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
288 alert, backslash, formfeed, and vertical tab unnecessarily in
292 version-control: never