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