1 2000-03-17 Jim Meyering <meyering@lucent.com>
3 * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
4 Otherwise, include <strings.h>
6 2000-03-17 Bruno Haible <haible@clisp.cons.org>
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.
12 2000-03-07 Paul Eggert <eggert@twinsun.com>
14 * lib/savedir.c (savedir): Work even if directory size is
15 negative; this can happen with some screwy NFS configurations.
17 2000-03-06 Jim Meyering <meyering@lucent.com>
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.
22 2000-03-05 Jim Meyering <meyering@lucent.com>
24 * localcharset.c ("path-concat.h"): Include.
25 (get_charset_aliases): Use path_concat instead of ANSI string
28 * unicodeio.h (PARAMS): Define.
29 Use it to guard prototype.
31 2000-03-04 Jim Meyering <meyering@lucent.com>
33 * Makefile.am (install-exec-local): Create $(libdir) before installing
35 (uninstall-local): Uncomment this rule so `make distcheck' works
38 * unicodeio.c (<errno.h>): Include it.
39 (errno): Declare if not defined.
41 * localcharset.c: Add Bruno's comment justifying use of volatile.
43 * config.charset: New version, incorporating remarks from a linux
44 i18n mailing list. From Bruno Haible.
46 2000-03-02 Jim Meyering <meyering@lucent.com>
48 * Makefile.am (EXTRA_DIST): Add config.charset.
50 2000-03-01 Jim Meyering <meyering@lucent.com>
52 * localcharset.c: Guard some #includes with `#if HAVE_...'.
53 * unicodeio.c: Likewise.
55 2000-02-02 Bruno Haible <haible@clisp.cons.org>
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.
65 2000-02-28 Paul Eggert <eggert@twinsun.com>
67 * lib/quotearg.c (ALERT_CHAR): New macro.
68 (quotearg_buffer_restyled): Use it.
70 2000-02-27 Jim Meyering <meyering@lucent.com>
72 * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
73 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
75 * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H',
76 not `#if STDC_HEADERS'.
77 Declare malloc if needed.
79 * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
80 now that autoconf always defines the HAVE_DECL_ symbols.
83 * strtoumax.c: Likewise.
85 * backupfile.c: Arrange for cpp to fail if the configure-time
86 declaration check was not run.
90 * strtoumax.c: Likewise.
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.
95 2000-02-18 Paul Eggert <eggert@twinsun.com>
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.
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.
111 (parser_control): Changed from struct parser_control to typedef (for
112 consistency). All uses changed.
114 (tID): Removed; not used.
115 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
117 2000-02-14 Paul Eggert <eggert@twinsun.com>
119 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
120 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
122 2000-02-12 Jim Meyering <meyering@lucent.com>
124 * userspec.c (ISDIGIT): Define it.
125 (isdigit): Remove definition.
126 (is_number): Use ISDIGIT, not isdigit.
127 <libintl.h>: Include.
129 (parse_user_spec): Mark translatable strings.
131 2000-02-10 Jim Meyering <meyering@lucent.com>
133 With these changes, nanosleep.[ch] are finally enough like the other
134 lib/* replacement files to compile on a few more losing systems.
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.
142 2000-02-03 Jim Meyering <meyering@lucent.com>
144 * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
145 rather than with `#if HAVE_UTMPNAME'.
147 2000-02-01 Jim Meyering <meyering@lucent.com>
149 * readutmp.h (UT_USER): Add parens. From Andreas Schwab.
151 2000-01-31 Jim Meyering <meyering@lucent.com>
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.
159 * quotearg.c (ISASCII): Add #undef and move definition to follow
160 inclusion of wctype.h to work around solaris2.6 namespace pollution.
162 Reported by Tom Tromey.
164 2000-01-30 Jim Meyering <meyering@lucent.com>
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.
170 * readutmp.h (UT_USER): Define.
172 2000-01-23 Jim Meyering <meyering@lucent.com>
174 * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
177 2000-01-22 Jim Meyering <meyering@lucent.com>
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.
184 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
185 * dirname.c (dir_name): Support for DOS-style file names with drive
188 * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint.
190 * strverscmp.c (ISDIGIT): Define.
191 (strverscmp): Use ISDIGIT, not isdigit.
193 2000-01-17 Paul Eggert <eggert@twinsun.com>
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).
201 2000-01-17 Jim Meyering <meyering@lucent.com>
203 * interlock: Remove unused file. Reported by François Pinard.
205 2000-01-16 Paul Eggert <eggert@twinsun.com>
207 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
208 alert, backslash, formfeed, and vertical tab unnecessarily in
212 version-control: never