2776
|
1 2000-07-24 Jim Meyering <meyering@lucent.com> |
|
2 |
|
3 * mbswidth.c: Remove useless #else. From Bruno Haible. |
|
4 |
2773
|
5 2000-07-23 Paul Eggert <eggert@twinsun.com> |
|
6 |
|
7 * mbswidth.c (_XOPEN_SOURCE): |
|
8 Don't define; this causes problems on Solaris 7. |
|
9 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare. |
|
10 |
2771
|
11 2000-07-23 Paul Eggert <eggert@twinsun.com> |
|
12 |
|
13 * lib/quotearg.c: |
|
14 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), |
|
15 so that mbstate_t is always defined. |
|
16 |
|
17 Do not inspect MB_LEN_MAX, since it's incorrectly defined to |
|
18 be 1 in at least one GCC installation, and this configuration |
|
19 error is likely to be common. Ignoring MB_LEN_MAX hurts |
|
20 performance on hosts that have mbrtowc but have only unibyte |
|
21 locales, but I assume these hosts are rare. |
|
22 |
2769
|
23 2000-07-23 Paul Eggert <eggert@twinsun.com> |
|
24 |
|
25 * lib/quotearg.c: Streamline by invoking multibyte code only if needed. |
|
26 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX. |
|
27 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX). |
|
28 (quotearg_buffer_restyled): If a unibyte locale, don't bother to |
|
29 invoke multibyte primitives. |
|
30 |
2764
|
31 2000-07-23 Jim Meyering <meyering@lucent.com> |
|
32 |
|
33 * basename.c (base_name): Add an assertion. |
|
34 |
2762
|
35 2000-07-15 Bruno Haible <clisp.cons.org> |
|
36 |
|
37 * quotearg.c: When the system forces us to redefine mbstate_t, |
|
38 shadow its mbsinit function. |
|
39 |
2755
|
40 2000-07-16 Bruno Haible <haible@clisp.cons.org> |
|
41 |
|
42 * mbswidth.h: New file. |
|
43 * mbswidth.c: New file. |
2759
|
44 * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c. |
2769
|
45 (noinst_HEADERS): Add mbswidth.h. |
2755
|
46 |
2754
|
47 2000-07-17 Bruno Haible <haible@clisp.cons.org> |
|
48 |
|
49 * config.charset: Add support for FreeBSD. Improve support for HP-UX |
|
50 and IRIX 6. |
|
51 |
2747
|
52 2000-07-15 Jim Meyering <meyering@lucent.com> |
|
53 |
2751
|
54 * makepath.c: Include quote.h. |
|
55 (make_path): Convert "`%s'" in format strings to "%s", and wrap each |
|
56 corresponding argument in a `quote (...)' call. |
|
57 Give better diagnostics. |
|
58 |
2749
|
59 * Makefile.am (libfetish_a_SOURCES): Add quote.c. |
|
60 (noinst_HEADERS): Add quote.h. |
|
61 |
2747
|
62 * quote.c (quote, quote_n): New file. Two functions taken verbatim |
|
63 from tar's src/misc.c. |
|
64 * quote.h: New file. Prototypes for same. |
|
65 |
2740
|
66 2000-07-10 Paul Eggert <eggert@twinsun.com> |
|
67 |
|
68 From a suggestion by Bruno Haible. |
|
69 * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition. |
|
70 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT, |
|
71 to decide whether to define the BeOS workaround macro; |
|
72 this adjusts to the change to AC_MBSTATE_T. |
|
73 |
2738
|
74 2000-07-13 Paul Eggert <eggert@twinsun.com> |
|
75 |
|
76 * quotearg.h (enum quoting style): New enum clocale_quoting_style. |
|
77 |
|
78 * quotearg.c: (quoting_style_args, quoting_style_vals, |
|
79 quotearg_buffer_restyled): Add support for |
|
80 clocale_quoting_style. Undo previous change to |
|
81 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}" |
|
82 and "{RIGHT QUOTATION MARK}" msgids. |
|
83 |
2723
|
84 2000-07-05 Paul Eggert <eggert@twinsun.com> |
|
85 |
|
86 The old behavior of quoting `like this' doesn't look good with |
|
87 newer, ISO-style fonts. See: |
|
88 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html |
|
89 |
|
90 Instead, quote "like this" by default. Let the translator |
|
91 tailor the locale-specific quoting behavior by providing |
|
92 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}. |
|
93 |
|
94 * quotearg.c (N_): New macro. |
|
95 (gettext_default): New function. |
|
96 (quotearg_buffer_restyled): Use |
|
97 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and |
|
98 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote. |
|
99 |
2719
|
100 2000-07-09 Jim Meyering <meyering@lucent.com> |
|
101 |
|
102 * Most files: Update copyright dates to include 2000. |
|
103 |
2721
|
104 2000-07-08 Jim Meyering <meyering@lucent.com> |
|
105 |
|
106 * xgethostname.c (ENAMETOOLONG): Define to an unlikely value |
|
107 if not defined. |
|
108 (xgethostname): Remove now-unnecessary #ifdef. |
|
109 Move declaration of `err' into loop where it's used. |
|
110 |
|
111 2000-07-05 Bruno Haible <haible@clisp.cons.org> |
|
112 |
|
113 * xgethostname.c (xgethostname): Protect against the SunOS5.5 bug |
|
114 by allocating a larger buffer. Test the gethostname return value for |
|
115 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname |
|
116 returns an error and ENAMETOOLONG isn't defined. |
|
117 |
2710
|
118 2000-07-05 Paul Eggert <eggert@twinsun.com> |
|
119 and Bruno Haible <haible@clisp.cons.org> |
|
120 |
|
121 * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't. |
|
122 |
2708
|
123 2000-07-05 Bruno Haible <haible@clisp.cons.org> |
|
124 |
|
125 * quotearg.c (struct quoting_options): Simplify quote_these_too |
|
126 dimension. |
|
127 |
2706
|
128 2000-07-03 Jim Meyering <meyering@lucent.com> |
|
129 |
|
130 * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen. |
|
131 Reported by Bruno Haible. |
|
132 |
2704
|
133 2000-07-04 Jim Meyering <meyering@lucent.com> |
|
134 |
|
135 * quotearg.c: Make inclusion of <wchar.h> independent of whether |
|
136 HAVE_MBRTOWC is set. Required at least for irix-5.6, which |
|
137 lacks mbrtowc. |
|
138 |
2693
|
139 2000-07-03 Paul Eggert <eggert@twinsun.com> |
|
140 and Bruno Haible <haible@clisp.cons.org> |
|
141 |
|
142 * lib/quotearg.c (mbrtowc): |
|
143 Assign to *pwc, and return 1 only if result is nonzero. |
|
144 (iswprint): Use ISPRINT when substituting our own mbrtowc. |
|
145 |
2697
|
146 2000-07-03 Jim Meyering <meyering@lucent.com> |
|
147 |
|
148 * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H. |
|
149 This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20. |
|
150 From Bob Proulx. |
|
151 |
2691
|
152 2000-07-02 Jim Meyering <meyering@lucent.com> |
|
153 |
|
154 * quotearg.c (mbstate_t): Don't define here. |
|
155 |
2688
|
156 2000-07-02 Jim Meyering <meyering@lucent.com> |
|
157 |
|
158 * nanosleep.c (SIGCONT): Define if not already defined. |
|
159 |
2678
|
160 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
|
161 |
|
162 * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV, |
|
163 per change in ../m4/ls-mntd-fs.m4. |
|
164 (read_filesystem_list): Ignore symbolic links. |
|
165 |
2668
|
166 2000-06-29 Jim Meyering <meyering@lucent.com> |
|
167 |
2672
|
168 * same.c: Include <string.h> or <strings.h>, as appropriate, |
|
169 for declaration of strcmp. |
|
170 |
2670
|
171 * long-options.c: Include <stdlib.h>, for declaration of exit. |
|
172 |
2668
|
173 * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]: |
|
174 Avoid warning by casting result to `char *' to remove `const'. |
|
175 |
2662
|
176 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
|
177 |
|
178 * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c. |
|
179 |
2659
|
180 2000-06-26 Paul Eggert <eggert@twinsun.com> |
|
181 |
|
182 savedir now sets errno on failure and invokes xmalloc to get memory. |
|
183 Fix a couple of other minor bugs while we're at it. |
|
184 |
|
185 * savedir.c (<unistd.h>): Do not include; there's no need. |
|
186 (NAMLEN): Remove macro. |
|
187 (malloc, realloc): Remove decls. |
|
188 (stpcpy): Likewise. |
|
189 ("xalloc.h"): Include. |
|
190 (NAME_SIZE_DEFAULT): New macro. |
|
191 (savedir): Use xmalloc / xrealloc to allocate memory. |
|
192 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero. |
|
193 Skip "" directory entries. |
|
194 Use strlen to calculate directory entry length, since the old method |
|
195 is rarely used these days and isn't worth supporting. |
|
196 Don't use a pointer after freeing it. |
|
197 Check for integer overflow when calculating allocation size. |
|
198 Use memcpy to copy entries, instead of stpcpy. |
|
199 Set errno properly when returning NULL. |
|
200 Check for readdir error. |
|
201 |
2657
|
202 2000-06-26 Jim Meyering <meyering@lucent.com> |
|
203 |
|
204 * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort. |
|
205 |
2655
|
206 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
|
207 |
|
208 * getusershell.c (xmalloc, xrealloc): Remove functions. |
|
209 Include xalloc.h. |
|
210 Don't include <stdlib.h>. Don't declare malloc, realloc. |
|
211 |
2651
|
212 2000-06-23 Bruno Haible <haible@clisp.cons.org> |
|
213 |
|
214 * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency. |
|
215 |
2644
|
216 2000-06-24 Jim Meyering <meyering@lucent.com> |
|
217 |
|
218 * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r. |
|
219 |
2636
|
220 2000-06-21 Jim Meyering <meyering@lucent.com> |
|
221 |
|
222 * getpass.c: New file, from Bruno Haible. Required for BeOS. |
|
223 |
2640
|
224 2000-06-19 Paul Eggert <eggert@twinsun.com> |
|
225 |
|
226 * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5. |
|
227 (mbrtowc, mbstate_t): Define substitutes if |
|
228 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT. |
|
229 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT, |
|
230 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H). |
|
231 |
2628
|
232 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
|
233 |
|
234 * xgetcwd.c (xgetcwd): If the required pathname length is smaller |
|
235 than 1024, return a memory chunk of least possible size, instead |
|
236 of size PATH_MAX + 2. In the loop, increment the size proportionally. |
|
237 Use free/xmalloc instead of xrealloc to avoid copying for very long |
|
238 paths. |
|
239 |
2626
|
240 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
|
241 |
|
242 * canon-host.c (canon_host): Use malloc and memcpy to copy an |
|
243 address, not strdup. Include <stdlib.h> and don't declare free(). |
|
244 |
2624
|
245 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
|
246 |
|
247 * path-concat.c (path_concat): Don't access dir[-1] if dir is |
|
248 the empty string. |
|
249 |
2621
|
250 2000-06-21 Jim Meyering <meyering@lucent.com> |
|
251 |
|
252 * Makefile.am (libfetish_a_SOURCES): Add getstr.c. |
|
253 (noinst_HEADERS): Add getstr.h. |
|
254 |
|
255 * getline.c (getstr): Move into a separate file. |
|
256 * getstr.c (getstr): New file, extracted from getline.c, with |
|
257 the following changes: new parameter, delim2; both delim[12] |
|
258 parameters have type `int', not `char'. The latter would lose |
|
259 with 8-bit delimiters. |
|
260 * getstr.h: New file. |
|
261 |
2611
|
262 2000-06-19 Jim Meyering <meyering@lucent.com> |
|
263 |
|
264 * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define. |
|
265 |
2602
|
266 2000-06-18 Jim Meyering <meyering@lucent.com> |
|
267 |
2608
|
268 * mkdir.c: Remove file, due mainly to copyright incompatibility. |
|
269 Besides, these days every porting target provides a mkdir function. |
|
270 |
2606
|
271 * strnlen.c: Include memory.h, string.h, and/or strings.h as needed. |
|
272 (this snippet comes from src/system.h). |
|
273 |
2594
|
274 2000-06-15 Paul Eggert <eggert@twinsun.com> |
|
275 |
2640
|
276 * human.c (adjust_value): New function. |
2594
|
277 (human_readable_inexact): Apply rounding style even when |
|
278 printing approximate values. |
|
279 |
2591
|
280 2000-06-14 Paul Eggert <eggert@twinsun.com> |
|
281 |
2640
|
282 * human.c (human_readable_inexact): Allow an input block |
2591
|
283 size that is not a multiple of the output block size, and vice versa. |
2592
|
284 Reported by Piergiorgio Sartor. |
2591
|
285 |
2589
|
286 2000-06-14 Paul Eggert <eggert@twinsun.com> |
|
287 |
2640
|
288 * getdate.y (get_date): Apply relative times after time |
2589
|
289 zone indicator, not before. Reported by Todd A. Jacobs. |
|
290 |
2585
|
291 2000-06-13 Jim Meyering <meyering@lucent.com> |
|
292 |
2591
|
293 * Makefile.am (all-local): Depend on lstat.c and stat.c. |
|
294 |
2585
|
295 * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c. |
|
296 |
2583
|
297 2000-06-12 Paul Eggert <eggert@twinsun.com> |
|
298 |
|
299 * xstat.in: Include <stdlib.h> in lstat, to declare "free". |
|
300 |
2575
|
301 2000-06-04 Paul Eggert <eggert@twinsun.com> |
|
302 |
2583
|
303 * strnlen.c: Include <config.h> if HAVE_CONFIG_H. |
2575
|
304 |
2573
|
305 2000-06-04 Jim Meyering <meyering@lucent.com> |
|
306 |
|
307 * getugroups.c (getugroups): Cast -1 to gid_t, for systems like |
|
308 SunOS4.1.4 for which gid_t is an unsigned type. |
|
309 |
2569
|
310 2000-06-03 Jim Meyering <meyering@lucent.com> |
|
311 |
|
312 * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr. |
|
313 |
2559
|
314 2000-05-26 Bruno Haible <haible@clisp.cons.org> |
|
315 |
|
316 * Makefile.am (install-exec-local): On systems with glibc-2.1 or |
|
317 newer, don't install charset.alias. |
|
318 * config.charset: Change the Linux/glibc rules so they become empty |
|
319 on glibc-2.1 or newer. |
|
320 |
2554
|
321 2000-06-02 Jim Meyering <meyering@lucent.com> |
|
322 |
|
323 * mountlist.c: Back out last change. Instead, do this... |
|
324 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy |
|
325 member using the same `ignore'-testing code. |
|
326 * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored |
|
327 fs_type strings. |
|
328 From Mark D. Roth. |
|
329 |
2549
|
330 2000-05-29 Jim Meyering <meyering@lucent.com> |
|
331 |
|
332 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts |
|
333 with the `ignore' attribute. Based on a patch from Mark D. Roth. |
|
334 |
2548
|
335 2000-05-22 Jim Meyering <meyering@lucent.com> |
|
336 |
|
337 * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block. |
|
338 |
2525
|
339 2000-05-18 Jim Meyering <meyering@lucent.com> |
|
340 |
|
341 * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list |
|
342 back, too, since it may have been modified by allocate_entry. |
|
343 (hash_delete): Rewrite to use neither the assignment operator |
|
344 nor the comma operator in an if-expression. |
|
345 |
2523
|
346 2000-05-15 Paul Eggert <eggert@twinsun.com> |
|
347 |
2583
|
348 * closeout.c: |
2523
|
349 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO): |
|
350 Remove; no longer needed. |
|
351 "quotearg.h": Add include. |
|
352 (file_name): Do not bother to explicitly initialize to NULL; it's less |
|
353 efficient on some hosts. |
|
354 (close_stdout_status): Remove test as to whether stdout was already |
|
355 closed; it breaks for the case "echo x | sort >&-". |
|
356 Quote file name colons. |
|
357 Do not assume that _("write error") lacks format strings. |
|
358 |
2518
|
359 2000-05-15 Jim Meyering <meyering@lucent.com> |
|
360 |
|
361 * version-etc.c (version_etc_copyright): Update the copyright string |
|
362 used in all --version output. |
|
363 |
2521
|
364 2000-05-14 Jim Meyering <meyering@lucent.com> |
|
365 |
|
366 * closeout.c (close_stdout_set_file_name): New function. |
|
367 (close_stdout_status): Use new file-scoped global. |
|
368 Return right away if fstat says the stdout file descriptor is invalid. |
|
369 * closeout.h (close_stdout_set_file_name): Declare. |
|
370 |
2515
|
371 2000-05-10 Jim Meyering <meyering@lucent.com> |
|
372 |
|
373 * closeout.c [default_exit_status]: New file-scoped variable. |
|
374 (close_stdout_set_status): New function. |
|
375 * closeout.h (close_stdout_set_status): Declare. |
|
376 |
2508
|
377 2000-05-08 Jim Meyering <meyering@lucent.com> |
|
378 |
|
379 * long-options.c: Don't include closeout.h. |
|
380 (parse_long_options): Don't call close_stdout for --version. |
|
381 |
2499
|
382 2000-05-06 Jim Meyering <meyering@lucent.com> |
|
383 |
2504
|
384 * strnlen.c: Undefine __strnlen and strnlen. |
|
385 [!weak_alias]: Define __strnlen to strnlen. |
|
386 |
2499
|
387 * atexit.c: New file, from libiberty. |
|
388 |
|
389 2000-05-06 Jim Meyering <meyering@lucent.com> |
|
390 |
|
391 * closeout.c (close_stdout_status): Also check for errors on the |
|
392 stderr stream. |
|
393 |
2488
|
394 2000-05-05 Bruno Haible <haible@clisp.cons.org> |
|
395 |
|
396 * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy |
|
397 instead of xmalloc, xrealloc, path_concat. |
|
398 (locale_charset): Treat empty environment variables as absent. |
|
399 (DIRECTORY_SEPARATOR, ISSLASH): New macros. |
|
400 |
2467
|
401 2000-05-04 Jim Meyering <meyering@lucent.com> |
|
402 |
|
403 * getopt.c: Update from glibc. |
2478
|
404 * obstack.c: Likewise. |
|
405 * obstack.h: Likewise. |
2473
|
406 * regex.c: Likewise. NB: K&R compiler support is dropped for this file |
|
407 |
|
408 * regex.h: Likewise. |
2470
|
409 * strndup.c: Likewise. |
|
410 * strnlen.c: New file, from glibc. |
2467
|
411 |
2461
|
412 2000-05-01 Jim Meyering <meyering@lucent.com> |
|
413 |
|
414 * full-write.c (full_write): Remove `FIXME' part of comment. |
|
415 |
2447
|
416 2000-04-29 Jim Meyering <meyering@lucent.com> |
|
417 |
|
418 * path-concat.c: Declare strdup only if it's not defined. |
|
419 * canon-host.c: Likewise. |
|
420 |
2445
|
421 2000-04-28 Jim Meyering <meyering@lucent.com> |
|
422 |
|
423 * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid |
|
424 redefinition warning on some systems (HPUX). Otherwise, regex.h is |
|
425 included first, then limits.h is included by locale.h by libintl.h. |
|
426 From John David Anglin. |
|
427 |
2440
|
428 2000-04-25 Jim Meyering <meyering@lucent.com> |
|
429 |
|
430 * makepath.c (S_IRWXUGO): Define. |
|
431 (make_path): Always perform explicit chmod if MODE specifies any |
2442
|
432 of the `special' permission bits. Prompted by a bug report against |
|
433 install from Mate Wierdl and Joost van Baal. |
2440
|
434 |
2435
|
435 2000-04-18 Jim Meyering <meyering@lucent.com> |
|
436 |
2440
|
437 * README: New file. |
|
438 |
2435
|
439 * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define |
|
440 getpagesize. For BeOS. Based on a patch from Bruno Haible. |
|
441 |
2431
|
442 2000-04-17 Jim Meyering <meyering@lucent.com> |
|
443 |
|
444 * strftime.c (my_strftime) [strftime]: Declare strftime here, since |
|
445 the definition of it to rpl_strftime also defined-away the system's |
|
446 declaration. |
|
447 |
2427
|
448 2000-04-15 Jim Meyering <meyering@lucent.com> |
|
449 |
|
450 Use `C' to denote so-called `contiguous' files, the same way |
|
451 that tar does. |
|
452 * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define. |
|
453 (ftypelet): Use S_ISCTG. |
|
454 From Michael Deutschmann. |
|
455 |
|
456 2000-04-14 Jim Meyering <meyering@lucent.com> |
|
457 |
|
458 * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime. |
|
459 |
2416
|
460 2000-04-08 Jim Meyering <meyering@lucent.com> |
|
461 |
|
462 * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3 |
|
463 names don't conflict. Reported by Eli Zaretskii. |
|
464 |
2413
|
465 2000-03-28 Bruno Haible <haible@clisp.cons.org> |
|
466 |
|
467 * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv |
2431
|
468 bug. Deal with the different error behavior of Irix iconv. |
2413
|
469 |
|
470 2000-04-07 Jim Meyering <meyering@lucent.com> |
|
471 |
|
472 * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h, |
|
473 to work around system header problems on AIX 3.2.5. From Bruno Haible. |
|
474 |
2406
|
475 2000-04-05 Jim Meyering <meyering@lucent.com> |
|
476 |
|
477 Portability tweaks required for ultrix4.3. |
|
478 * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent. |
|
479 * readutmp.c: Include sys/types.h before sys/stat.h. |
|
480 * canon-host.c: Declare strdup. |
|
481 * path-concat.c: Likewise. |
|
482 From John David Anglin. |
|
483 |
2397
|
484 2000-04-04 Jim Meyering <meyering@lucent.com> |
|
485 |
|
486 Be more DOS 8.3-friendly. |
|
487 * ref-add.sin: Renamed from ref-add.sed.in. |
|
488 * ref-del.sin: Renamed from ref-del.sed.in. |
|
489 * Makefile.am: Reflect renaming. |
|
490 Reported by Eli Zaretskii. |
|
491 |
|
492 Use a temporary file name that won't clash with `charset.alias' |
|
493 in the DOS 8.3 name space. |
|
494 * Makefile.am (charset_tmp): Define. |
|
495 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t. |
|
496 (uninstall-local): Likewise. |
|
497 Reported by Eli Zaretskii. |
|
498 |
2379
|
499 2000-03-29 Paul Eggert <eggert@twinsun.com> |
|
500 |
|
501 * time/strftime.c (my_strftime): Make sure we call the system |
|
502 strftime, not ourselves, when invoking the underlying strftime. |
|
503 |
2364
|
504 2000-03-24 Jim Meyering <meyering@lucent.com> |
|
505 |
|
506 * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in. |
|
507 (charset_alias): Define. |
|
508 (install-exec-local): Factor out common code. |
|
509 (uninstall-local): Split lines longer than 80. |
|
510 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead) |
|
511 (SUFFIXES): Define. |
|
512 (.sed.in.sed): New rule. Don't redirect directly to $@. |
|
513 (CLEANFILES): Add ref-add.sed and ref-del.sed. |
|
514 |
|
515 2000-03-19 Bruno Haible <haible@clisp.cons.org> |
|
516 |
|
517 * config.charset: Output a line containing "Packages using this file". |
|
518 * ref-add.sed.in, ref-del.sed.in: New files. |
|
519 * Makefile.am (install-exec-local, uninstall-local, ref-add.sed, |
|
520 ref-del.sed): New rules. |
|
521 |
2353
|
522 2000-03-17 Jim Meyering <meyering@lucent.com> |
|
523 |
|
524 * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H. |
|
525 Otherwise, include <strings.h> |
|
526 |
|
527 2000-03-17 Bruno Haible <haible@clisp.cons.org> |
|
528 |
|
529 * unicodeio.c (utf8_wctomb): New function. |
|
530 (print_unicode_char): Pass the Unicode character to iconv in UTF-8 |
|
531 format instead of in UCS-4 with platform dependent endianness. |
|
532 |
2343
|
533 2000-03-07 Paul Eggert <eggert@twinsun.com> |
|
534 |
2583
|
535 * savedir.c (savedir): Work even if directory size is |
2343
|
536 negative; this can happen with some screwy NFS configurations. |
|
537 |
2348
|
538 2000-03-06 Jim Meyering <meyering@lucent.com> |
|
539 |
|
540 * localcharset.c (get_charset_aliases): Don't try to free file_name |
|
541 if it's NULL (because we ran out of memory). From Bruno Haible. |
|
542 |
2337
|
543 2000-03-05 Jim Meyering <meyering@lucent.com> |
|
544 |
2339
|
545 * localcharset.c ("path-concat.h"): Include. |
|
546 (get_charset_aliases): Use path_concat instead of ANSI string |
|
547 concatenation. |
|
548 |
2337
|
549 * unicodeio.h (PARAMS): Define. |
|
550 Use it to guard prototype. |
|
551 |
2330
|
552 2000-03-04 Jim Meyering <meyering@lucent.com> |
|
553 |
2332
|
554 * Makefile.am (install-exec-local): Create $(libdir) before installing |
|
555 into it. |
2334
|
556 (uninstall-local): Uncomment this rule so `make distcheck' works |
|
557 once again. |
2332
|
558 |
2330
|
559 * unicodeio.c (<errno.h>): Include it. |
|
560 (errno): Declare if not defined. |
|
561 |
|
562 * localcharset.c: Add Bruno's comment justifying use of volatile. |
|
563 |
|
564 * config.charset: New version, incorporating remarks from a linux |
|
565 i18n mailing list. From Bruno Haible. |
|
566 |
|
567 2000-03-02 Jim Meyering <meyering@lucent.com> |
|
568 |
|
569 * Makefile.am (EXTRA_DIST): Add config.charset. |
|
570 |
2309
|
571 2000-03-01 Jim Meyering <meyering@lucent.com> |
|
572 |
|
573 * localcharset.c: Guard some #includes with `#if HAVE_...'. |
|
574 * unicodeio.c: Likewise. |
|
575 |
|
576 2000-02-02 Bruno Haible <haible@clisp.cons.org> |
|
577 |
|
578 * config.charset: New file. |
|
579 * localcharset.c: New file. |
|
580 * unicodeio.h, unicodeio.c: New files. |
|
581 * Makefile.am (DEFS): Add -DLIBDIR=... |
|
582 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c. |
|
583 (noinst_HEADERS): Add unicodeio.h. |
|
584 (all-local, install-exec-local, charset.alias): New targets. |
|
585 |
2300
|
586 2000-02-28 Paul Eggert <eggert@twinsun.com> |
|
587 |
2583
|
588 * quotearg.c (ALERT_CHAR): New macro. |
2300
|
589 (quotearg_buffer_restyled): Use it. |
|
590 |
2285
|
591 2000-02-27 Jim Meyering <meyering@lucent.com> |
|
592 |
2298
|
593 * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/. |
|
594 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'. |
|
595 |
2295
|
596 * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H', |
|
597 not `#if STDC_HEADERS'. |
|
598 Declare malloc if needed. |
|
599 |
2290
|
600 * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..' |
|
601 now that autoconf always defines the HAVE_DECL_ symbols. |
|
602 * human.c: Likewise. |
|
603 * same.c: Likewise. |
|
604 * strtoumax.c: Likewise. |
|
605 |
|
606 * backupfile.c: Arrange for cpp to fail if the configure-time |
|
607 declaration check was not run. |
|
608 * hash.c: Likewise. |
|
609 * human.c: Likewise. |
|
610 * same.c: Likewise. |
|
611 * strtoumax.c: Likewise. |
|
612 |
2285
|
613 * userspec.c (parse_user_spec): If there is no `:' but there is a `.', |
|
614 then first look up the entire `.'-containing string as a login name. |
|
615 |
2286
|
616 2000-02-18 Paul Eggert <eggert@twinsun.com> |
|
617 |
2583
|
618 * getdate.y: Handle two-digit years with leading zeros correctly. |
2286
|
619 (textint): New typedef. |
|
620 (parser_control): Member year changed from int to textint. |
|
621 All uses changed. |
|
622 (YYSTYPE): Removed; replaced by %union with int and textint members. |
|
623 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN, |
|
624 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER, |
|
625 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>. |
|
626 (tSNUMBER, tUNUMBER): Now of type <textintval>. |
|
627 (date, number, to_year): Use width of number in digits, not its value, |
|
628 to determine whether it's a 2-digit year, or a 2-digit time. |
|
629 (yylex): Store number of digits of numeric tokens. |
|
630 Reported by John Kendall. |
|
631 |
|
632 (parser_control): Changed from struct parser_control to typedef (for |
|
633 consistency). All uses changed. |
|
634 |
|
635 (tID): Removed; not used. |
|
636 (yylex): Return '?' for unknown identifiers, rather than (unused) tID. |
|
637 |
2278
|
638 2000-02-14 Paul Eggert <eggert@twinsun.com> |
|
639 |
2583
|
640 * getpagesize.h (getpagesize): Port to VMS for Alpha; |
2279
|
641 adapted from changes to grep getpagesize.h by Martin P.J. Zinser. |
2278
|
642 |
2274
|
643 2000-02-12 Jim Meyering <meyering@lucent.com> |
|
644 |
|
645 * userspec.c (ISDIGIT): Define it. |
|
646 (isdigit): Remove definition. |
|
647 (is_number): Use ISDIGIT, not isdigit. |
|
648 <libintl.h>: Include. |
|
649 (_ and N_): Define. |
|
650 (parse_user_spec): Mark translatable strings. |
|
651 |
2268
|
652 2000-02-10 Jim Meyering <meyering@lucent.com> |
|
653 |
|
654 With these changes, nanosleep.[ch] are finally enough like the other |
|
655 lib/* replacement files to compile on a few more losing systems. |
|
656 |
|
657 * nanosleep.h: Don't include config.h. |
|
658 Remove prototype from declaration of nanosleep. |
|
659 (PARAMS): Remove now-unneeded definition. |
|
660 * nanosleep.c: #undef nanosleep. |
|
661 (rpl_nanosleep): Rename from nanosleep. |
|
662 |
2245
|
663 2000-02-03 Jim Meyering <meyering@lucent.com> |
|
664 |
|
665 * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION', |
|
666 rather than with `#if HAVE_UTMPNAME'. |
|
667 |
|
668 2000-02-01 Jim Meyering <meyering@lucent.com> |
|
669 |
|
670 * readutmp.h (UT_USER): Add parens. From Andreas Schwab. |
|
671 |
2235
|
672 2000-01-31 Jim Meyering <meyering@lucent.com> |
|
673 |
2240
|
674 * nanosleep.h (nanosleep): Guard declaration with |
|
675 `#if ! HAVE_DECL_NANOSLEEP'. |
2275
|
676 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to |
2240
|
677 the declaration in that vendor's sys/timers.h. |
|
678 Reported by Christian Krackowizer. |
|
679 |
2235
|
680 * quotearg.c (ISASCII): Add #undef and move definition to follow |
|
681 inclusion of wctype.h to work around solaris2.6 namespace pollution. |
|
682 (ISPRINT): Likewise. |
2236
|
683 Reported by Tom Tromey. |
2235
|
684 |
2228
|
685 2000-01-30 Jim Meyering <meyering@lucent.com> |
|
686 |
|
687 * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding |
|
688 uses of ->ut_name. The latter doesn't work with new Linux header files |
|
689 where only utmpx.ut_user is declared. |
|
690 |
|
691 * readutmp.h (UT_USER): Define. |
|
692 |
2193
|
693 2000-01-23 Jim Meyering <meyering@lucent.com> |
|
694 |
|
695 * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of |
|
696 obstack.c. |
|
697 |
2163
|
698 2000-01-22 Jim Meyering <meyering@lucent.com> |
2188
|
699 |
|
700 * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul. |
|
701 [! HAVE_DECL_STRTOULL]: Declare strtoull. |
|
702 Required for some AIX systems. Reported by Christian Krackowizer. |
|
703 [TESTING] (main): New function. |
|
704 |
2172
|
705 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il> |
|
706 * dirname.c (dir_name): Support for DOS-style file names with drive |
|
707 letters. |
2163
|
708 |
2185
|
709 * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint. |
2184
|
710 |
2163
|
711 * strverscmp.c (ISDIGIT): Define. |
|
712 (strverscmp): Use ISDIGIT, not isdigit. |
|
713 |
2152
|
714 2000-01-17 Paul Eggert <eggert@twinsun.com> |
|
715 |
|
716 * nanosleep.c (nanosleep): |
|
717 Don't use SA_INTERRUPT to decide whether to call sigaction, as |
|
718 POSIX.1 doesn't require SA_INTERRUPT and some systems |
|
719 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; |
|
720 it's been part of POSIX.1 since day 1 (in 1988). |
|
721 |
2150
|
722 2000-01-17 Jim Meyering <meyering@lucent.com> |
|
723 |
|
724 * interlock: Remove unused file. Reported by Fran�ois Pinard. |
|
725 |
2144
|
726 2000-01-16 Paul Eggert <eggert@twinsun.com> |
|
727 |
2583
|
728 * quotearg.c (quotearg_buffer_restyled): Do not quote |
2144
|
729 alert, backslash, formfeed, and vertical tab unnecessarily in |
|
730 shell quoting style. |
2190
|
731 |
|
732 Local Variables: |
|
733 version-control: never |
|
734 End: |