Mercurial > hg > octave-lojdl > gnulib-hg
annotate lib/ChangeLog @ 3095:6ade1cce5de9
.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Thu, 04 Jan 2001 10:19:49 +0000 |
parents | 4e021a920141 |
children | 8426f7282fd4 |
rev | line source |
---|---|
3095 | 1 2001-01-03 Paul Eggert <eggert@twinsun.com> |
2 | |
3 * lib/strftime.c: Sync with glibc time/strftime.c 1.81. | |
4 | |
3091 | 5 2001-01-03 Jim Meyering <meyering@lucent.com> |
6 | |
7 * unicodeio.c (print_unicode_char): Remove `const' from declaration of | |
8 local `inptr' to avoid warning with some system declarations of iconv. | |
9 | |
3082 | 10 2000-12-29 Paul Eggert <eggert@twinsun.com> |
11 | |
12 * lib/modechange.c: Do not assume that mode_t uses the | |
13 traditional octal encoding. E.g. "chmod 1 FOO" should set | |
14 the other-execute bit of FOO even if S_IXOTH != 1. | |
15 | |
16 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH, | |
17 WOTH, XOTH, ALLM): New macros. | |
18 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR, | |
19 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH): | |
20 Use them. | |
21 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID. | |
22 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above. | |
23 (mode_compile): | |
24 No need to use uintmax_t; unsigned long is long enough. | |
25 Don't bother to get suffix since we don't use it. | |
26 | |
3074 | 27 2000-12-24 Jim Meyering <meyering@lucent.com> |
28 | |
29 * hash.c (is_prime): Return explicit boolean values. | |
30 (hash_get_first): Return NULL to appease Irix5.6's 89. | |
3075 | 31 Reported by Nelson Beebe. |
3074 | 32 |
3063 | 33 2000-10-31 Bruno Haible <haible@clisp.cons.org> |
34 | |
35 * localcharset.c (locale_charset): Add support for Win32. | |
36 | |
37 2000-12-18 Paul Eggert <eggert@twinsun.com> | |
38 | |
3067 | 39 * physmem.h, physmem.c: New files. |
3063 | 40 |
3067 | 41 * Makefile.am (libfetish_a_SOURCES): Add physmem.c. |
3063 | 42 (noinst_HEADERS): Add physmem.h. |
43 | |
3067 | 44 * xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and |
3063 | 45 't' for compatibility with Solaris 8 sort. |
46 | |
3061 | 47 2000-12-18 Bruno Haible <haible@clisp.cons.org> |
48 | |
49 * config.charset: Add support for BeOS. | |
50 | |
3053 | 51 2000-12-16 Jim Meyering <meyering@lucent.com> |
52 | |
53 * getusershell.c [!SHELLS_FILE && __DJGPP__]: Define | |
54 SHELLS_FILE to a file name that's useful on djgpp systems. | |
55 Include stdlib.h. | |
56 (ADDITIONAL_DEFAULT_SHELLS): Define. | |
57 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS. | |
58 Based mostly on a patch from Prashant TR. | |
59 | |
3051 | 60 2000-12-16 Jim Meyering <meyering@lucent.com> |
61 | |
62 This bug had a serious impact on chown: `chown N:M FILE' (for integer | |
63 N and M) would have treated it like `chown N:N FILE'. | |
64 | |
65 * userspec.c (parse_user_spec): Fix typo: s/u/g/. | |
66 | |
3054 | 67 2000-10-31 Bruno Haible <haible@clisp.cons.org> |
68 | |
69 * config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII, | |
70 CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257 | |
71 to the list of canonical encodings. Rename EUC-CN to GB2312. | |
72 | |
3044 | 73 2000-12-08 Andreas Schwab <schwab@suse.de> |
74 | |
75 * mbswidth.c (mbsnwidth): Don't loop endlessly when called with an | |
76 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set. | |
77 | |
3039 | 78 2000-12-07 Jim Meyering <meyering@lucent.com> |
79 | |
3042 | 80 * stripslash.c (ISSLASH): Define. |
81 (strip_trailing_slashes): Use ISSLASH rather than comparing against `/'. | |
82 From Prashant TR. | |
83 | |
3039 | 84 * dirname.c (FILESYSTEM_PREFIX_LEN): Define. |
85 (dir_name_r): Declare this function as static. | |
86 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd | |
87 manifest itself on a name containing a mix of slashes and | |
88 backslashes. | |
89 Make this function work with names starting with a DOS-style | |
90 drive letter and colon prefix. | |
91 (dir_name): Append `.' if necessary. | |
92 Based mostly on patches from Prashant TR and Eli Zaretskii. | |
93 | |
94 * dirname.h (dir_name_r): Remove prototype. | |
95 | |
3028 | 96 2000-12-05 Jim Meyering <meyering@lucent.com> |
97 | |
98 * dirname.c (dir_name_r): Add `const' in a few local declarations. | |
99 | |
3023 | 100 2000-12-04 Jim Meyering <meyering@lucent.com> |
101 | |
102 * path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc. | |
3025 | 103 Also include memory.h, stdlib.h, unistd.h if appropriate. |
3026 | 104 Reported by Andreas Jaeger (conflicting declaration of malloc). |
3023 | 105 |
3020 | 106 2000-12-02 Jim Meyering <meyering@lucent.com> |
107 | |
108 * closeout.h: Make idempotent, to avoid some obscure warnings. | |
109 | |
3010 | 110 2000-12-01 Paul Eggert <eggert@twinsun.com> |
111 | |
112 * lib/memrchr.c: Include <config.h> before any system include file. | |
113 | |
3005 | 114 2000-11-29 Paul Eggert <eggert@twinsun.com> |
115 | |
116 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t. | |
117 | |
2998 | 118 2000-11-26 Jim Meyering <meyering@lucent.com> |
119 | |
120 * memcoll.c: Include sys/types.h. From Werner Almesberger. | |
121 | |
2994 | 122 2000-11-22 Paul Eggert <eggert@twinsun.com> |
123 | |
124 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a | |
125 size of (size_t) -1; it's not portable. | |
126 | |
2992 | 127 2000-11-17 Akim Demaille <akim@epita.fr> |
128 | |
129 * lib/obstack.h: Formatting changes. | |
130 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would | |
131 prevent type checking. | |
132 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't | |
133 cast the value to (void *): assigning a `foo *' to a `void *' | |
134 variable is valid. | |
135 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int. | |
136 | |
2989 | 137 2000-11-17 Jim Meyering <meyering@lucent.com> |
138 | |
139 * strstr.c: Update from GNU libc. | |
140 | |
2987 | 141 2000-11-16 Jim Meyering <meyering@lucent.com> |
142 | |
143 * strverscmp.c: Incorporate weak-alias-related changes from glibc. | |
144 | |
145 2000-11-11 Jim Meyering <meyering@lucent.com> | |
146 | |
147 * error.c: Add a couple #includes, merging from GNU libc version. | |
148 | |
2980 | 149 2000-11-10 Jim Meyering <meyering@lucent.com> |
150 | |
151 * obstack.h: Update from GNU libc. | |
152 * obstack.c: Likewise. | |
153 | |
2967 | 154 2000-11-06 Paul Eggert <eggert@twinsun.com> |
155 | |
2981 | 156 * getusershell.c (setusershell): Use rewind rather than |
2967 | 157 fseek/fseeko, to avoid configuration hassles with fseeko. |
158 Don't bother opening SHELLS_FILE if shellstream is NULL; | |
159 it's not necessary. | |
160 | |
2965 | 161 2000-11-05 Jim Meyering <meyering@lucent.com> |
162 | |
163 * makepath.h (make_dir): Declare. | |
164 * makepath.c (make_dir): Remove `static' attribute. | |
165 Tweak a comment. | |
166 | |
2957 | 167 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr> |
168 | |
169 * hash.c (hash_get_next): Fix a thinko: when ENTRY is the | |
170 last one in a bucket, advance to the next bucket. | |
171 | |
2955 | 172 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg> |
173 | |
2981 | 174 * fnmatch.c: Do not comment out all the code if we are using |
2955 | 175 the GNU C library, because in some cases we are replacing buggy |
176 code in the GNU C library itself. | |
177 | |
2952 | 178 2000-10-30 Paul Eggert <eggert@twinsun.com> |
179 | |
2981 | 180 * error.h, getline.h, modechange.h: |
2952 | 181 Remove "2000" from Copyright line, as the file hasn't been |
182 changed this year other than in the copyright notice. | |
183 | |
2981 | 184 * xalloc.h: Add "2000" to Copyright line, as this file |
2952 | 185 was changed this year. |
186 | |
2949 | 187 2000-10-30 Paul Eggert <eggert@twinsun.com> |
188 | |
2981 | 189 * fnmatch.c (FOLD): Do not assume that characters are unsigned. |
2949 | 190 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs, |
191 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero. | |
192 | |
2941 | 193 2000-10-29 Greg Louis <glouis@dynamicro.on.ca> |
194 | |
195 * regex.h (__restrict_arr): Move definition out of #ifndef block. | |
196 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but | |
197 doesn't define __restrict_arr. | |
198 | |
2939 | 199 2000-10-29 Jim Meyering <meyering@lucent.com> |
200 | |
201 * xstat.in: Fix grammar in comment. | |
202 | |
2929 | 203 2000-10-28 Jim Meyering <meyering@lucent.com> |
204 | |
2933 | 205 * memchr.c: Update from libc. |
206 Adjust for portability: | |
207 [HAVE_STDLIB_H]: Include stdlib.h. | |
208 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h. | |
209 Undef __memchr, too. | |
210 [!weak_alias]: Define __memchr to memchr. | |
211 | |
2931 | 212 * regex.c: Update from libc. |
213 * regex.h: Likewise. | |
214 * getopt1.c: Likewise. | |
2935 | 215 * memcmp.c: Likewise. |
2931 | 216 |
2942
c5e4ce044bd7
fix typo: s/fseek0/fseeko/
Jim Meyering <jim@meyering.net>
parents:
2941
diff
changeset
|
217 * getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko. |
2967 | 218 Avoid using fseek, when possible -- it's broken by design. |
2929 | 219 Patch by Ulrich Drepper. |
220 | |
2924 | 221 2000-10-26 Jim Meyering <meyering@lucent.com> |
222 | |
223 * strftime.c: Update from libc. | |
224 | |
2918 | 225 2000-10-25 Jim Meyering <meyering@lucent.com> |
226 | |
227 * obstack.c: Update from libc. | |
228 | |
2911 | 229 2000-10-23 Jim Meyering <meyering@lucent.com> |
230 | |
231 * hard-locale.c (hard_locale): Revert last change -- it was simply | |
232 wrong. That set_locale call must not have any side effects. | |
233 From Paul Eggert. | |
234 | |
2904 | 235 2000-10-22 Jim Meyering <meyering@lucent.com> |
236 | |
2907 | 237 * md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC. |
238 [CYCLIC]: Remove now-unused definition. | |
239 | |
2904 | 240 * save-cwd.c (O_DIRECTORY): Define, if needed. |
241 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".". | |
242 Suggestion from Ulrich Drepper. | |
243 | |
2893 | 244 2000-10-21 Jim Meyering <meyering@lucent.com> |
245 | |
2920 | 246 * dirname.c (dir_name_r): New function, factored out of dir_name. |
247 (dir_name): Use dir_name_r. | |
248 * dirname.h (dir_name_r): Declare it. | |
249 | |
250 2000-10-21 Jim Meyering <meyering@lucent.com> | |
251 | |
2898 | 252 * dirname.c (memrchr): Declare if necessary. |
253 (dir_name): Remove the restriction that there be no | |
254 trailing slashes. Now, this code skips past them, effectively | |
255 ignoring them. | |
256 [TEST_DIRNAME] (main): New unit tests. | |
257 | |
2893 | 258 * memrchr.c: New file from GNU libc. |
259 Undef __memrchr, too. | |
260 [!weak_alias]: Define __memrchr to memrchr. | |
261 Guard weak_alias use with `#ifdef weak_alias'. | |
262 | |
2886 | 263 2000-10-17 Jim Meyering <meyering@lucent.com> |
264 | |
2891 | 265 * quote.h (PARAMS): Define and use. |
2890 | 266 Reported by Akim Demaille. |
2889 | 267 |
2886 | 268 * getopt.c: Update from libc. |
269 | |
2884 | 270 2000-10-16 Jim Meyering <meyering@lucent.com> |
271 | |
272 * hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to setlocale. | |
273 From Jan Fedak. | |
274 | |
2880 | 275 2000-09-25 Jim Meyering <meyering@lucent.com> |
276 | |
277 * md5.h (rol): Define (from GnuPG). | |
278 | |
279 * sha.c: Give credit (GnuPG) where due. | |
280 (M): Use rol rather than open-coding it. | |
281 Add a FIXME comment. | |
282 | |
2876 | 283 2000-09-21 Jim Meyering <meyering@lucent.com> |
284 | |
285 * userspec.c (parse_user_spec): Remove debugging printf I'd added. | |
2877 | 286 Reported by Michael Stone. |
2876 | 287 |
2874 | 288 2000-09-20 Jim Meyering <meyering@lucent.com> |
289 | |
290 * Makefile.am (libfetish_a_SOURCES): Add sha.c. | |
291 (noinst_HEADERS): Add sha.h. | |
292 Based on code from Scott G. Miller and from GnuPG. | |
293 | |
2861 | 294 2000-09-15 Jim Meyering <meyering@lucent.com> |
295 | |
296 * regex.c: Update from libc. | |
297 | |
2859 | 298 2000-09-10 Jim Meyering <meyering@lucent.com> |
299 | |
300 * getopt.c (_getopt_internal): Update from glibc. | |
301 | |
2855 | 302 2000-09-09 Jim Meyering <meyering@lucent.com> |
303 | |
2857 | 304 * quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't |
305 think it should be used as a general replacement for isascii. | |
306 * fnmatch.c: Likewise. | |
307 * mbswidth.c: Likewise | |
308 * regex.c: Likewise. | |
309 | |
2855 | 310 Don't use atoi. |
311 * userspec.c: Include sys/param.h and limits.h. | |
312 Include xstrtol.h. | |
313 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define. | |
314 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define. | |
315 (parse_user_spec): Use xstrtoul, not atoi when converting numeric | |
316 UID, GID. Check range. | |
317 | |
2853 | 318 2000-09-06 Jim Meyering <meyering@lucent.com> |
319 | |
320 * getopt.c (_getopt_internal): Update from glibc. | |
321 | |
2846 | 322 2000-08-30 Jim Meyering <meyering@lucent.com> |
323 | |
324 * strftime.c: Merge in changes from GNU libc. | |
325 | |
2837 | 326 2000-08-26 Jim Meyering <meyering@lucent.com> |
327 | |
2839 | 328 * closeout.c: Include "__fpending.h". |
329 (close_stdout_status): Return right away if there's nothing to flush. | |
330 | |
2837 | 331 * Makefile.am (noinst_HEADERS): Add __fpending.h. |
332 * __fpending.c: New file. | |
333 * __fpending.h: New file. | |
334 | |
2815 | 335 2000-08-07 Paul Eggert <eggert@twinsun.com> |
336 | |
337 Standardize on "memory exhausted" instead of "Memory exhausted" | |
338 or "virtual memory exhausted". | |
339 * obstack.c (print_and_abort): Use "memory exhausted", not | |
340 "virtual memory exhausted". | |
341 * same.c (same_name): Invoke xalloc_die instead of printing | |
342 our own message. | |
343 * userspec.c (parse_user_spec): Likewise. | |
344 * bumpalloc.h: comment fix | |
345 * same.c, userspec.c: Include xalloc.h. | |
346 | |
347 * xalloc.h (xalloc_msg_memory_exhausted): Now char const[], | |
348 not char *const and pointing to a constant array. | |
349 * xmalloc.c (xalloc_msg_memory_exhausted): Likewise. | |
350 (xrealloc): Comment fix. | |
351 | |
352 * userspec.c (parse_user_spec): | |
353 Don't translate a message until just before returning, | |
354 to avoid unnecessary translation. | |
355 | |
2808 | 356 2000-08-07 Jim Meyering <meyering@lucent.com> |
357 | |
358 * addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h, | |
359 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c, | |
360 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h, | |
361 getgroups.c, gethostname.c, getopt.h, group-member.c, | |
362 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c, | |
363 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c, | |
364 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h, | |
365 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c, | |
366 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c, | |
367 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c, | |
368 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c, | |
369 yesno.c: Back out Copyright date changes for each file with no change | |
370 this year. This eases coordination with other programs using the same | |
371 source code modules. From Paul Eggert. | |
372 | |
2804 | 373 2000-08-03 Greg McGary <greg@mcgary.org> |
374 | |
375 * regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, | |
376 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros. | |
377 (EXTEND_BUFFER): Use them. | |
378 | |
2802 | 379 2000-08-01 Jim Meyering <meyering@lucent.com> |
380 | |
381 * dirname.c (ISSLASH): Define. | |
382 (BACKSLASH_IS_PATH_SEPARATOR): Define. | |
383 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which | |
384 both `\' and `/' may be use as path separators. | |
385 Based on a patch from Prashant TR. | |
386 | |
2800 | 387 2000-07-31 Paul Eggert <eggert@twinsun.com> |
388 | |
2815 | 389 * quotearg.c (quotearg_n_options): Don't make the initial |
2800 | 390 slot vector a constant, since it might get modified. |
391 | |
2794 | 392 2000-07-31 Jim Meyering <meyering@lucent.com> |
393 | |
394 * xmalloc.c: Use `virtual memory exhausted', not `Memory exhausted'. | |
395 * obstack.c (print_and_abort): Likewise. | |
396 | |
2796 | 397 2000-07-30 Paul Eggert <eggert@twinsun.com> |
398 | |
399 * quotearg.c (quotearg_n_options): Preallocate a slot 0 | |
400 buffer, so that the caller can always quote one small | |
401 component of a "memory exhausted" message in slot 0. | |
402 From a suggestion by Jim Meyering. | |
403 | |
2791 | 404 2000-07-30 Jim Meyering <meyering@lucent.com> |
405 | |
406 * makepath.c (make_path): Quote the other instance, too. | |
407 | |
408 * quotearg.c (N_STATIC_SLOTVECS): Define. | |
409 (STATIC_BUF_SIZE): Define. | |
410 (quotearg_n_options): Use only statically allocated storage when | |
411 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller | |
412 than STATIC_BUF_SIZE. | |
413 | |
2782 | 414 2000-07-29 Jim Meyering <meyering@lucent.com> |
415 | |
2788 | 416 * diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS. |
417 * dirname.c (dir_name): Likewise. | |
418 | |
419 * basename.c (base_name): Use ISSLASH rather than comparing against `/'. | |
420 | |
2782 | 421 * dirname.c (dir_name) [MSDOS]: Declare `lim' to be const. |
2785 | 422 (dir_name): Assert that there are no trailing slashes. |
2782 | 423 |
2780 | 424 2000-07-18 Bruno Haible <haible@clisp.cons.org> |
425 | |
426 * mbswidth.h (mbswidth): Add a flags argument. | |
427 (mbswidth): New declaration. | |
428 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros. | |
429 * mbswidth.c (mbswidth): Add a flags argument. | |
430 (mbsnwidth): New function. | |
431 | |
2776 | 432 2000-07-24 Jim Meyering <meyering@lucent.com> |
433 | |
434 * mbswidth.c: Remove useless #else. From Bruno Haible. | |
435 | |
2773 | 436 2000-07-23 Paul Eggert <eggert@twinsun.com> |
437 | |
438 * mbswidth.c (_XOPEN_SOURCE): | |
439 Don't define; this causes problems on Solaris 7. | |
440 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare. | |
441 | |
2771 | 442 2000-07-23 Paul Eggert <eggert@twinsun.com> |
443 | |
2815 | 444 * quotearg.c: |
2771 | 445 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), |
446 so that mbstate_t is always defined. | |
447 | |
448 Do not inspect MB_LEN_MAX, since it's incorrectly defined to | |
449 be 1 in at least one GCC installation, and this configuration | |
450 error is likely to be common. Ignoring MB_LEN_MAX hurts | |
451 performance on hosts that have mbrtowc but have only unibyte | |
452 locales, but I assume these hosts are rare. | |
453 | |
2769 | 454 2000-07-23 Paul Eggert <eggert@twinsun.com> |
455 | |
2815 | 456 * quotearg.c: Streamline by invoking multibyte code only if needed. |
2769 | 457 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX. |
458 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX). | |
459 (quotearg_buffer_restyled): If a unibyte locale, don't bother to | |
460 invoke multibyte primitives. | |
461 | |
2764 | 462 2000-07-23 Jim Meyering <meyering@lucent.com> |
463 | |
464 * basename.c (base_name): Add an assertion. | |
465 | |
2762 | 466 2000-07-15 Bruno Haible <clisp.cons.org> |
467 | |
468 * quotearg.c: When the system forces us to redefine mbstate_t, | |
469 shadow its mbsinit function. | |
470 | |
2755 | 471 2000-07-16 Bruno Haible <haible@clisp.cons.org> |
472 | |
473 * mbswidth.h: New file. | |
474 * mbswidth.c: New file. | |
2759 | 475 * Makefile.am (libfetish_a_SOURCES): Add mbswidth.c. |
2769 | 476 (noinst_HEADERS): Add mbswidth.h. |
2755 | 477 |
2754 | 478 2000-07-17 Bruno Haible <haible@clisp.cons.org> |
479 | |
480 * config.charset: Add support for FreeBSD. Improve support for HP-UX | |
481 and IRIX 6. | |
482 | |
2747 | 483 2000-07-15 Jim Meyering <meyering@lucent.com> |
484 | |
2751 | 485 * makepath.c: Include quote.h. |
486 (make_path): Convert "`%s'" in format strings to "%s", and wrap each | |
487 corresponding argument in a `quote (...)' call. | |
488 Give better diagnostics. | |
489 | |
2749 | 490 * Makefile.am (libfetish_a_SOURCES): Add quote.c. |
491 (noinst_HEADERS): Add quote.h. | |
492 | |
2747 | 493 * quote.c (quote, quote_n): New file. Two functions taken verbatim |
494 from tar's src/misc.c. | |
495 * quote.h: New file. Prototypes for same. | |
496 | |
2740 | 497 2000-07-10 Paul Eggert <eggert@twinsun.com> |
498 | |
499 From a suggestion by Bruno Haible. | |
500 * quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition. | |
501 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT, | |
502 to decide whether to define the BeOS workaround macro; | |
503 this adjusts to the change to AC_MBSTATE_T. | |
504 | |
2738 | 505 2000-07-13 Paul Eggert <eggert@twinsun.com> |
506 | |
507 * quotearg.h (enum quoting style): New enum clocale_quoting_style. | |
508 | |
509 * quotearg.c: (quoting_style_args, quoting_style_vals, | |
510 quotearg_buffer_restyled): Add support for | |
511 clocale_quoting_style. Undo previous change to | |
512 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}" | |
513 and "{RIGHT QUOTATION MARK}" msgids. | |
514 | |
2723 | 515 2000-07-05 Paul Eggert <eggert@twinsun.com> |
516 | |
517 The old behavior of quoting `like this' doesn't look good with | |
518 newer, ISO-style fonts. See: | |
519 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html | |
520 | |
521 Instead, quote "like this" by default. Let the translator | |
522 tailor the locale-specific quoting behavior by providing | |
523 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}. | |
524 | |
525 * quotearg.c (N_): New macro. | |
526 (gettext_default): New function. | |
527 (quotearg_buffer_restyled): Use | |
528 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and | |
529 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote. | |
530 | |
2719 | 531 2000-07-09 Jim Meyering <meyering@lucent.com> |
532 | |
533 * Most files: Update copyright dates to include 2000. | |
534 | |
2721 | 535 2000-07-08 Jim Meyering <meyering@lucent.com> |
536 | |
537 * xgethostname.c (ENAMETOOLONG): Define to an unlikely value | |
538 if not defined. | |
539 (xgethostname): Remove now-unnecessary #ifdef. | |
540 Move declaration of `err' into loop where it's used. | |
541 | |
542 2000-07-05 Bruno Haible <haible@clisp.cons.org> | |
543 | |
544 * xgethostname.c (xgethostname): Protect against the SunOS5.5 bug | |
545 by allocating a larger buffer. Test the gethostname return value for | |
546 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname | |
547 returns an error and ENAMETOOLONG isn't defined. | |
548 | |
2710 | 549 2000-07-05 Paul Eggert <eggert@twinsun.com> |
550 and Bruno Haible <haible@clisp.cons.org> | |
551 | |
552 * quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't. | |
553 | |
2708 | 554 2000-07-05 Bruno Haible <haible@clisp.cons.org> |
555 | |
556 * quotearg.c (struct quoting_options): Simplify quote_these_too | |
557 dimension. | |
558 | |
2706 | 559 2000-07-03 Jim Meyering <meyering@lucent.com> |
560 | |
561 * strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen. | |
562 Reported by Bruno Haible. | |
563 | |
2704 | 564 2000-07-04 Jim Meyering <meyering@lucent.com> |
565 | |
566 * quotearg.c: Make inclusion of <wchar.h> independent of whether | |
567 HAVE_MBRTOWC is set. Required at least for irix-5.6, which | |
568 lacks mbrtowc. | |
569 | |
2693 | 570 2000-07-03 Paul Eggert <eggert@twinsun.com> |
571 and Bruno Haible <haible@clisp.cons.org> | |
572 | |
2815 | 573 * quotearg.c (mbrtowc): |
2693 | 574 Assign to *pwc, and return 1 only if result is nonzero. |
575 (iswprint): Use ISPRINT when substituting our own mbrtowc. | |
576 | |
2697 | 577 2000-07-03 Jim Meyering <meyering@lucent.com> |
578 | |
579 * readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H. | |
580 This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20. | |
581 From Bob Proulx. | |
582 | |
2691 | 583 2000-07-02 Jim Meyering <meyering@lucent.com> |
584 | |
585 * quotearg.c (mbstate_t): Don't define here. | |
586 | |
2688 | 587 2000-07-02 Jim Meyering <meyering@lucent.com> |
588 | |
589 * nanosleep.c (SIGCONT): Define if not already defined. | |
590 | |
2678 | 591 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
592 | |
593 * mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV, | |
594 per change in ../m4/ls-mntd-fs.m4. | |
595 (read_filesystem_list): Ignore symbolic links. | |
596 | |
2668 | 597 2000-06-29 Jim Meyering <meyering@lucent.com> |
598 | |
2672 | 599 * same.c: Include <string.h> or <strings.h>, as appropriate, |
600 for declaration of strcmp. | |
601 | |
2670 | 602 * long-options.c: Include <stdlib.h>, for declaration of exit. |
603 | |
2668 | 604 * mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]: |
605 Avoid warning by casting result to `char *' to remove `const'. | |
606 | |
2662 | 607 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
608 | |
609 * Makefile.am (libfetish_a_SOURCES): Remove readutmp.c. | |
610 | |
2659 | 611 2000-06-26 Paul Eggert <eggert@twinsun.com> |
612 | |
613 savedir now sets errno on failure and invokes xmalloc to get memory. | |
614 Fix a couple of other minor bugs while we're at it. | |
615 | |
616 * savedir.c (<unistd.h>): Do not include; there's no need. | |
617 (NAMLEN): Remove macro. | |
618 (malloc, realloc): Remove decls. | |
619 (stpcpy): Likewise. | |
620 ("xalloc.h"): Include. | |
621 (NAME_SIZE_DEFAULT): New macro. | |
622 (savedir): Use xmalloc / xrealloc to allocate memory. | |
623 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero. | |
624 Skip "" directory entries. | |
625 Use strlen to calculate directory entry length, since the old method | |
626 is rarely used these days and isn't worth supporting. | |
627 Don't use a pointer after freeing it. | |
628 Check for integer overflow when calculating allocation size. | |
629 Use memcpy to copy entries, instead of stpcpy. | |
630 Set errno properly when returning NULL. | |
631 Check for readdir error. | |
632 | |
2657 | 633 2000-06-26 Jim Meyering <meyering@lucent.com> |
634 | |
635 * posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort. | |
636 | |
2655 | 637 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
638 | |
639 * getusershell.c (xmalloc, xrealloc): Remove functions. | |
640 Include xalloc.h. | |
641 Don't include <stdlib.h>. Don't declare malloc, realloc. | |
642 | |
2651 | 643 2000-06-23 Bruno Haible <haible@clisp.cons.org> |
644 | |
645 * unicodeio.c (print_unicode_char): Work around ansi2knr deficiency. | |
646 | |
2644 | 647 2000-06-24 Jim Meyering <meyering@lucent.com> |
648 | |
649 * error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r. | |
650 | |
2636 | 651 2000-06-21 Jim Meyering <meyering@lucent.com> |
652 | |
653 * getpass.c: New file, from Bruno Haible. Required for BeOS. | |
654 | |
2640 | 655 2000-06-19 Paul Eggert <eggert@twinsun.com> |
656 | |
657 * quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5. | |
658 (mbrtowc, mbstate_t): Define substitutes if | |
659 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT. | |
660 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT, | |
661 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H). | |
662 | |
2628 | 663 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
664 | |
665 * xgetcwd.c (xgetcwd): If the required pathname length is smaller | |
666 than 1024, return a memory chunk of least possible size, instead | |
667 of size PATH_MAX + 2. In the loop, increment the size proportionally. | |
668 Use free/xmalloc instead of xrealloc to avoid copying for very long | |
669 paths. | |
670 | |
2626 | 671 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
672 | |
673 * canon-host.c (canon_host): Use malloc and memcpy to copy an | |
674 address, not strdup. Include <stdlib.h> and don't declare free(). | |
675 | |
2624 | 676 2000-06-17 Bruno Haible <haible@clisp.cons.org> |
677 | |
678 * path-concat.c (path_concat): Don't access dir[-1] if dir is | |
679 the empty string. | |
680 | |
2621 | 681 2000-06-21 Jim Meyering <meyering@lucent.com> |
682 | |
683 * Makefile.am (libfetish_a_SOURCES): Add getstr.c. | |
684 (noinst_HEADERS): Add getstr.h. | |
685 | |
686 * getline.c (getstr): Move into a separate file. | |
687 * getstr.c (getstr): New file, extracted from getline.c, with | |
688 the following changes: new parameter, delim2; both delim[12] | |
689 parameters have type `int', not `char'. The latter would lose | |
690 with 8-bit delimiters. | |
691 * getstr.h: New file. | |
692 | |
2611 | 693 2000-06-19 Jim Meyering <meyering@lucent.com> |
694 | |
695 * getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define. | |
696 | |
2602 | 697 2000-06-18 Jim Meyering <meyering@lucent.com> |
698 | |
2608 | 699 * mkdir.c: Remove file, due mainly to copyright incompatibility. |
700 Besides, these days every porting target provides a mkdir function. | |
701 | |
2606 | 702 * strnlen.c: Include memory.h, string.h, and/or strings.h as needed. |
703 (this snippet comes from src/system.h). | |
704 | |
2594 | 705 2000-06-15 Paul Eggert <eggert@twinsun.com> |
706 | |
2640 | 707 * human.c (adjust_value): New function. |
2594 | 708 (human_readable_inexact): Apply rounding style even when |
709 printing approximate values. | |
710 | |
2591 | 711 2000-06-14 Paul Eggert <eggert@twinsun.com> |
712 | |
2640 | 713 * human.c (human_readable_inexact): Allow an input block |
2591 | 714 size that is not a multiple of the output block size, and vice versa. |
2592 | 715 Reported by Piergiorgio Sartor. |
2591 | 716 |
2589 | 717 2000-06-14 Paul Eggert <eggert@twinsun.com> |
718 | |
2640 | 719 * getdate.y (get_date): Apply relative times after time |
2589 | 720 zone indicator, not before. Reported by Todd A. Jacobs. |
721 | |
2585 | 722 2000-06-13 Jim Meyering <meyering@lucent.com> |
723 | |
2591 | 724 * Makefile.am (all-local): Depend on lstat.c and stat.c. |
725 | |
2585 | 726 * xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c. |
727 | |
2583 | 728 2000-06-12 Paul Eggert <eggert@twinsun.com> |
729 | |
730 * xstat.in: Include <stdlib.h> in lstat, to declare "free". | |
731 | |
2575 | 732 2000-06-04 Paul Eggert <eggert@twinsun.com> |
733 | |
2583 | 734 * strnlen.c: Include <config.h> if HAVE_CONFIG_H. |
2575 | 735 |
2573 | 736 2000-06-04 Jim Meyering <meyering@lucent.com> |
737 | |
738 * getugroups.c (getugroups): Cast -1 to gid_t, for systems like | |
739 SunOS4.1.4 for which gid_t is an unsigned type. | |
740 | |
2569 | 741 2000-06-03 Jim Meyering <meyering@lucent.com> |
742 | |
743 * strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr. | |
744 | |
2559 | 745 2000-05-26 Bruno Haible <haible@clisp.cons.org> |
746 | |
747 * Makefile.am (install-exec-local): On systems with glibc-2.1 or | |
748 newer, don't install charset.alias. | |
749 * config.charset: Change the Linux/glibc rules so they become empty | |
750 on glibc-2.1 or newer. | |
751 | |
2554 | 752 2000-06-02 Jim Meyering <meyering@lucent.com> |
753 | |
754 * mountlist.c: Back out last change. Instead, do this... | |
755 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the me_dummy | |
756 member using the same `ignore'-testing code. | |
757 * mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored | |
758 fs_type strings. | |
759 From Mark D. Roth. | |
760 | |
2549 | 761 2000-05-29 Jim Meyering <meyering@lucent.com> |
762 | |
763 * mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore mounts | |
764 with the `ignore' attribute. Based on a patch from Mark D. Roth. | |
765 | |
2548 | 766 2000-05-22 Jim Meyering <meyering@lucent.com> |
767 | |
768 * makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block. | |
769 | |
2525 | 770 2000-05-18 Jim Meyering <meyering@lucent.com> |
771 | |
772 * hash.c (hash_rehash): Fix a nasty bug: copy the free entry list | |
773 back, too, since it may have been modified by allocate_entry. | |
774 (hash_delete): Rewrite to use neither the assignment operator | |
775 nor the comma operator in an if-expression. | |
776 | |
2523 | 777 2000-05-15 Paul Eggert <eggert@twinsun.com> |
778 | |
2583 | 779 * closeout.c: |
2523 | 780 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO): |
781 Remove; no longer needed. | |
782 "quotearg.h": Add include. | |
783 (file_name): Do not bother to explicitly initialize to NULL; it's less | |
784 efficient on some hosts. | |
785 (close_stdout_status): Remove test as to whether stdout was already | |
786 closed; it breaks for the case "echo x | sort >&-". | |
787 Quote file name colons. | |
788 Do not assume that _("write error") lacks format strings. | |
789 | |
2518 | 790 2000-05-15 Jim Meyering <meyering@lucent.com> |
791 | |
792 * version-etc.c (version_etc_copyright): Update the copyright string | |
793 used in all --version output. | |
794 | |
2521 | 795 2000-05-14 Jim Meyering <meyering@lucent.com> |
796 | |
797 * closeout.c (close_stdout_set_file_name): New function. | |
798 (close_stdout_status): Use new file-scoped global. | |
799 Return right away if fstat says the stdout file descriptor is invalid. | |
800 * closeout.h (close_stdout_set_file_name): Declare. | |
801 | |
2515 | 802 2000-05-10 Jim Meyering <meyering@lucent.com> |
803 | |
804 * closeout.c [default_exit_status]: New file-scoped variable. | |
805 (close_stdout_set_status): New function. | |
806 * closeout.h (close_stdout_set_status): Declare. | |
807 | |
2508 | 808 2000-05-08 Jim Meyering <meyering@lucent.com> |
809 | |
810 * long-options.c: Don't include closeout.h. | |
811 (parse_long_options): Don't call close_stdout for --version. | |
812 | |
2499 | 813 2000-05-06 Jim Meyering <meyering@lucent.com> |
814 | |
2504 | 815 * strnlen.c: Undefine __strnlen and strnlen. |
816 [!weak_alias]: Define __strnlen to strnlen. | |
817 | |
2499 | 818 * atexit.c: New file, from libiberty. |
819 | |
820 2000-05-06 Jim Meyering <meyering@lucent.com> | |
821 | |
822 * closeout.c (close_stdout_status): Also check for errors on the | |
823 stderr stream. | |
824 | |
2488 | 825 2000-05-05 Bruno Haible <haible@clisp.cons.org> |
826 | |
827 * localcharset.c (get_charset_aliases): Use malloc, realloc and memcpy | |
828 instead of xmalloc, xrealloc, path_concat. | |
829 (locale_charset): Treat empty environment variables as absent. | |
830 (DIRECTORY_SEPARATOR, ISSLASH): New macros. | |
831 | |
2467 | 832 2000-05-04 Jim Meyering <meyering@lucent.com> |
833 | |
834 * getopt.c: Update from glibc. | |
2478 | 835 * obstack.c: Likewise. |
836 * obstack.h: Likewise. | |
2473 | 837 * regex.c: Likewise. NB: K&R compiler support is dropped for this file |
838 | |
839 * regex.h: Likewise. | |
2470 | 840 * strndup.c: Likewise. |
841 * strnlen.c: New file, from glibc. | |
2467 | 842 |
2461 | 843 2000-05-01 Jim Meyering <meyering@lucent.com> |
844 | |
845 * full-write.c (full_write): Remove `FIXME' part of comment. | |
846 | |
2447 | 847 2000-04-29 Jim Meyering <meyering@lucent.com> |
848 | |
849 * path-concat.c: Declare strdup only if it's not defined. | |
850 * canon-host.c: Likewise. | |
851 | |
2445 | 852 2000-04-28 Jim Meyering <meyering@lucent.com> |
853 | |
854 * rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to avoid | |
855 redefinition warning on some systems (HPUX). Otherwise, regex.h is | |
856 included first, then limits.h is included by locale.h by libintl.h. | |
857 From John David Anglin. | |
858 | |
2440 | 859 2000-04-25 Jim Meyering <meyering@lucent.com> |
860 | |
861 * makepath.c (S_IRWXUGO): Define. | |
862 (make_path): Always perform explicit chmod if MODE specifies any | |
2442 | 863 of the `special' permission bits. Prompted by a bug report against |
864 install from Mate Wierdl and Joost van Baal. | |
2440 | 865 |
2435 | 866 2000-04-18 Jim Meyering <meyering@lucent.com> |
867 | |
2440 | 868 * README: New file. |
869 | |
2435 | 870 * getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define |
871 getpagesize. For BeOS. Based on a patch from Bruno Haible. | |
872 | |
2431 | 873 2000-04-17 Jim Meyering <meyering@lucent.com> |
874 | |
875 * strftime.c (my_strftime) [strftime]: Declare strftime here, since | |
876 the definition of it to rpl_strftime also defined-away the system's | |
877 declaration. | |
878 | |
2427 | 879 2000-04-15 Jim Meyering <meyering@lucent.com> |
880 | |
881 Use `C' to denote so-called `contiguous' files, the same way | |
882 that tar does. | |
883 * filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define. | |
884 (ftypelet): Use S_ISCTG. | |
885 From Michael Deutschmann. | |
886 | |
887 2000-04-14 Jim Meyering <meyering@lucent.com> | |
888 | |
889 * strftime.c (my_strftime) [#ifdef strftime]: Declare strftime. | |
890 | |
2416 | 891 2000-04-08 Jim Meyering <meyering@lucent.com> |
892 | |
893 * Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3 | |
894 names don't conflict. Reported by Eli Zaretskii. | |
895 | |
2413 | 896 2000-03-28 Bruno Haible <haible@clisp.cons.org> |
897 | |
898 * unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv | |
2431 | 899 bug. Deal with the different error behavior of Irix iconv. |
2413 | 900 |
901 2000-04-07 Jim Meyering <meyering@lucent.com> | |
902 | |
903 * putenv.c: Move inclusion of errno.h so it follows that of sys/types.h, | |
904 to work around system header problems on AIX 3.2.5. From Bruno Haible. | |
905 | |
2406 | 906 2000-04-05 Jim Meyering <meyering@lucent.com> |
907 | |
908 Portability tweaks required for ultrix4.3. | |
909 * readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent. | |
910 * readutmp.c: Include sys/types.h before sys/stat.h. | |
911 * canon-host.c: Declare strdup. | |
912 * path-concat.c: Likewise. | |
913 From John David Anglin. | |
914 | |
2397 | 915 2000-04-04 Jim Meyering <meyering@lucent.com> |
916 | |
917 Be more DOS 8.3-friendly. | |
918 * ref-add.sin: Renamed from ref-add.sed.in. | |
919 * ref-del.sin: Renamed from ref-del.sed.in. | |
920 * Makefile.am: Reflect renaming. | |
921 Reported by Eli Zaretskii. | |
922 | |
923 Use a temporary file name that won't clash with `charset.alias' | |
924 in the DOS 8.3 name space. | |
925 * Makefile.am (charset_tmp): Define. | |
926 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t. | |
927 (uninstall-local): Likewise. | |
928 Reported by Eli Zaretskii. | |
929 | |
2379 | 930 2000-03-29 Paul Eggert <eggert@twinsun.com> |
931 | |
932 * time/strftime.c (my_strftime): Make sure we call the system | |
933 strftime, not ourselves, when invoking the underlying strftime. | |
934 | |
2364 | 935 2000-03-24 Jim Meyering <meyering@lucent.com> |
936 | |
937 * Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in. | |
938 (charset_alias): Define. | |
939 (install-exec-local): Factor out common code. | |
940 (uninstall-local): Split lines longer than 80. | |
941 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead) | |
942 (SUFFIXES): Define. | |
943 (.sed.in.sed): New rule. Don't redirect directly to $@. | |
944 (CLEANFILES): Add ref-add.sed and ref-del.sed. | |
945 | |
946 2000-03-19 Bruno Haible <haible@clisp.cons.org> | |
947 | |
948 * config.charset: Output a line containing "Packages using this file". | |
949 * ref-add.sed.in, ref-del.sed.in: New files. | |
950 * Makefile.am (install-exec-local, uninstall-local, ref-add.sed, | |
951 ref-del.sed): New rules. | |
952 | |
2353 | 953 2000-03-17 Jim Meyering <meyering@lucent.com> |
954 | |
955 * unicodeio.c (<string.h>): Include only #if HAVE_STRING_H. | |
956 Otherwise, include <strings.h> | |
957 | |
958 2000-03-17 Bruno Haible <haible@clisp.cons.org> | |
959 | |
960 * unicodeio.c (utf8_wctomb): New function. | |
961 (print_unicode_char): Pass the Unicode character to iconv in UTF-8 | |
962 format instead of in UCS-4 with platform dependent endianness. | |
963 | |
2343 | 964 2000-03-07 Paul Eggert <eggert@twinsun.com> |
965 | |
2583 | 966 * savedir.c (savedir): Work even if directory size is |
2343 | 967 negative; this can happen with some screwy NFS configurations. |
968 | |
2348 | 969 2000-03-06 Jim Meyering <meyering@lucent.com> |
970 | |
971 * localcharset.c (get_charset_aliases): Don't try to free file_name | |
972 if it's NULL (because we ran out of memory). From Bruno Haible. | |
973 | |
2337 | 974 2000-03-05 Jim Meyering <meyering@lucent.com> |
975 | |
2339 | 976 * localcharset.c ("path-concat.h"): Include. |
977 (get_charset_aliases): Use path_concat instead of ANSI string | |
978 concatenation. | |
979 | |
2337 | 980 * unicodeio.h (PARAMS): Define. |
981 Use it to guard prototype. | |
982 | |
2330 | 983 2000-03-04 Jim Meyering <meyering@lucent.com> |
984 | |
2332 | 985 * Makefile.am (install-exec-local): Create $(libdir) before installing |
986 into it. | |
2334 | 987 (uninstall-local): Uncomment this rule so `make distcheck' works |
988 once again. | |
2332 | 989 |
2330 | 990 * unicodeio.c (<errno.h>): Include it. |
991 (errno): Declare if not defined. | |
992 | |
993 * localcharset.c: Add Bruno's comment justifying use of volatile. | |
994 | |
995 * config.charset: New version, incorporating remarks from a linux | |
996 i18n mailing list. From Bruno Haible. | |
997 | |
998 2000-03-02 Jim Meyering <meyering@lucent.com> | |
999 | |
1000 * Makefile.am (EXTRA_DIST): Add config.charset. | |
1001 | |
2309 | 1002 2000-03-01 Jim Meyering <meyering@lucent.com> |
1003 | |
1004 * localcharset.c: Guard some #includes with `#if HAVE_...'. | |
1005 * unicodeio.c: Likewise. | |
1006 | |
1007 2000-02-02 Bruno Haible <haible@clisp.cons.org> | |
1008 | |
1009 * config.charset: New file. | |
1010 * localcharset.c: New file. | |
1011 * unicodeio.h, unicodeio.c: New files. | |
1012 * Makefile.am (DEFS): Add -DLIBDIR=... | |
1013 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c. | |
1014 (noinst_HEADERS): Add unicodeio.h. | |
1015 (all-local, install-exec-local, charset.alias): New targets. | |
1016 | |
2300 | 1017 2000-02-28 Paul Eggert <eggert@twinsun.com> |
1018 | |
2583 | 1019 * quotearg.c (ALERT_CHAR): New macro. |
2300 | 1020 (quotearg_buffer_restyled): Use it. |
1021 | |
2285 | 1022 2000-02-27 Jim Meyering <meyering@lucent.com> |
1023 | |
2298 | 1024 * strtoumax.c: Fix typo in decl of strtoul: s/long long/long/. |
1025 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'. | |
1026 | |
2295 | 1027 * backupfile.c: Guard inclusion of stdlib.h with `#if HAVE_STDLIB_H', |
1028 not `#if STDC_HEADERS'. | |
1029 Declare malloc if needed. | |
1030 | |
2290 | 1031 * backupfile.c: Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..' |
1032 now that autoconf always defines the HAVE_DECL_ symbols. | |
1033 * human.c: Likewise. | |
1034 * same.c: Likewise. | |
1035 * strtoumax.c: Likewise. | |
1036 | |
1037 * backupfile.c: Arrange for cpp to fail if the configure-time | |
1038 declaration check was not run. | |
1039 * hash.c: Likewise. | |
1040 * human.c: Likewise. | |
1041 * same.c: Likewise. | |
1042 * strtoumax.c: Likewise. | |
1043 | |
2285 | 1044 * userspec.c (parse_user_spec): If there is no `:' but there is a `.', |
1045 then first look up the entire `.'-containing string as a login name. | |
1046 | |
2286 | 1047 2000-02-18 Paul Eggert <eggert@twinsun.com> |
1048 | |
2583 | 1049 * getdate.y: Handle two-digit years with leading zeros correctly. |
2286 | 1050 (textint): New typedef. |
1051 (parser_control): Member year changed from int to textint. | |
1052 All uses changed. | |
1053 (YYSTYPE): Removed; replaced by %union with int and textint members. | |
1054 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN, | |
1055 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER, | |
1056 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>. | |
1057 (tSNUMBER, tUNUMBER): Now of type <textintval>. | |
1058 (date, number, to_year): Use width of number in digits, not its value, | |
1059 to determine whether it's a 2-digit year, or a 2-digit time. | |
1060 (yylex): Store number of digits of numeric tokens. | |
1061 Reported by John Kendall. | |
1062 | |
1063 (parser_control): Changed from struct parser_control to typedef (for | |
1064 consistency). All uses changed. | |
1065 | |
1066 (tID): Removed; not used. | |
1067 (yylex): Return '?' for unknown identifiers, rather than (unused) tID. | |
1068 | |
2278 | 1069 2000-02-14 Paul Eggert <eggert@twinsun.com> |
1070 | |
2583 | 1071 * getpagesize.h (getpagesize): Port to VMS for Alpha; |
2279 | 1072 adapted from changes to grep getpagesize.h by Martin P.J. Zinser. |
2278 | 1073 |
2274 | 1074 2000-02-12 Jim Meyering <meyering@lucent.com> |
1075 | |
1076 * userspec.c (ISDIGIT): Define it. | |
1077 (isdigit): Remove definition. | |
1078 (is_number): Use ISDIGIT, not isdigit. | |
1079 <libintl.h>: Include. | |
1080 (_ and N_): Define. | |
1081 (parse_user_spec): Mark translatable strings. | |
1082 | |
2268 | 1083 2000-02-10 Jim Meyering <meyering@lucent.com> |
1084 | |
1085 With these changes, nanosleep.[ch] are finally enough like the other | |
1086 lib/* replacement files to compile on a few more losing systems. | |
1087 | |
1088 * nanosleep.h: Don't include config.h. | |
1089 Remove prototype from declaration of nanosleep. | |
1090 (PARAMS): Remove now-unneeded definition. | |
1091 * nanosleep.c: #undef nanosleep. | |
1092 (rpl_nanosleep): Rename from nanosleep. | |
1093 | |
2245 | 1094 2000-02-03 Jim Meyering <meyering@lucent.com> |
1095 | |
1096 * readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION', | |
1097 rather than with `#if HAVE_UTMPNAME'. | |
1098 | |
1099 2000-02-01 Jim Meyering <meyering@lucent.com> | |
1100 | |
1101 * readutmp.h (UT_USER): Add parens. From Andreas Schwab. | |
1102 | |
2235 | 1103 2000-01-31 Jim Meyering <meyering@lucent.com> |
1104 | |
2240 | 1105 * nanosleep.h (nanosleep): Guard declaration with |
1106 `#if ! HAVE_DECL_NANOSLEEP'. | |
2275 | 1107 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to |
2240 | 1108 the declaration in that vendor's sys/timers.h. |
1109 Reported by Christian Krackowizer. | |
1110 | |
2235 | 1111 * quotearg.c (ISASCII): Add #undef and move definition to follow |
1112 inclusion of wctype.h to work around solaris2.6 namespace pollution. | |
1113 (ISPRINT): Likewise. | |
2236 | 1114 Reported by Tom Tromey. |
2235 | 1115 |
2228 | 1116 2000-01-30 Jim Meyering <meyering@lucent.com> |
1117 | |
1118 * readutmp.c (extract_trimmed_name): Use UT_USER instead of hard-coding | |
1119 uses of ->ut_name. The latter doesn't work with new Linux header files | |
1120 where only utmpx.ut_user is declared. | |
1121 | |
1122 * readutmp.h (UT_USER): Define. | |
1123 | |
2193 | 1124 2000-01-23 Jim Meyering <meyering@lucent.com> |
1125 | |
1126 * Makefile.am (libfetish_a_SOURCES): Remove explicit mention of | |
1127 obstack.c. | |
1128 | |
2163 | 1129 2000-01-22 Jim Meyering <meyering@lucent.com> |
2188 | 1130 |
1131 * strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul. | |
1132 [! HAVE_DECL_STRTOULL]: Declare strtoull. | |
1133 Required for some AIX systems. Reported by Christian Krackowizer. | |
1134 [TESTING] (main): New function. | |
1135 | |
2172 | 1136 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il> |
1137 * dirname.c (dir_name): Support for DOS-style file names with drive | |
1138 letters. | |
2163 | 1139 |
2185 | 1140 * quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of iswprint. |
2184 | 1141 |
2163 | 1142 * strverscmp.c (ISDIGIT): Define. |
1143 (strverscmp): Use ISDIGIT, not isdigit. | |
1144 | |
2152 | 1145 2000-01-17 Paul Eggert <eggert@twinsun.com> |
1146 | |
1147 * nanosleep.c (nanosleep): | |
1148 Don't use SA_INTERRUPT to decide whether to call sigaction, as | |
1149 POSIX.1 doesn't require SA_INTERRUPT and some systems | |
1150 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; | |
1151 it's been part of POSIX.1 since day 1 (in 1988). | |
1152 | |
2150 | 1153 2000-01-17 Jim Meyering <meyering@lucent.com> |
1154 | |
1155 * interlock: Remove unused file. Reported by Fran�ois Pinard. | |
1156 | |
2144 | 1157 2000-01-16 Paul Eggert <eggert@twinsun.com> |
1158 | |
2583 | 1159 * quotearg.c (quotearg_buffer_restyled): Do not quote |
2144 | 1160 alert, backslash, formfeed, and vertical tab unnecessarily in |
1161 shell quoting style. | |
2190 | 1162 |
1163 Local Variables: | |
1164 version-control: never | |
1165 End: |