1 2015-09-11 Daiki Ueno <ueno@gnu.org>
3 * gettext 0.19.6 released.
5 2015-07-10 Daiki Ueno <ueno@gnu.org>
7 * gettext 0.19.5 released.
9 2015-03-12 Daiki Ueno <ueno@gnu.org>
11 * vasnprintf.c: Update from gnulib.
13 2015-01-22 Daiki Ueno <ueno@gnu.org>
15 * vasnprintf.c: Update copyright year.
17 2014-12-24 Daiki Ueno <ueno@gnu.org>
19 * gettext 0.19.4 released.
21 2014-10-15 Daiki Ueno <ueno@gnu.org>
23 * gettext 0.19.3 released.
25 2014-09-30 Daiki Ueno <ueno@gnu.org>
27 * vasnprintf.c: Update from Gnulib.
29 2014-07-14 Daiki Ueno <ueno@gnu.org>
31 * gettext 0.19.2 released.
33 2014-06-10 Daiki Ueno <ueno@gnu.org>
35 * gettext 0.19.1 released.
37 2014-06-02 Daiki Ueno <ueno@gnu.org>
39 * gettext 0.19 released.
41 2013-06-10 Daiki Ueno <ueno@gnu.org>
43 * Makefile.am: Use $(MKDIR_P) instead of $(mkdir_p).
44 Suggested by Stefano Lattarini in
45 <https://lists.gnu.org/archive/html/bug-gettext/2013-04/msg00044.html>.
47 2013-03-07 Miguel Angel Arruga Vivas <rosen644835@gmail.com> (tiny change)
49 Fix '__attribute__' definition.
50 Reported at <https://savannah.gnu.org/bugs/?35313>
51 * autosprintf.in.h (_AUTOSPRINTF_ATTRIBUTE_FORMAT): New macro
52 instead of redefine __attribute__.
54 2013-03-04 Miguel Angel Arruga Vivas <rosen644835@gmail.com> (tiny change)
56 Add 'autosprintf::operator='. Needed because destructor
58 Reported at <https://savannah.gnu.org/bugs/?33102>
59 * autosprintf.in.h (autosprintf::operator=): New function.
60 Thanks to Daiki Ueno for pointing a better copy-and-swap
62 * autosprintf.cc (autosprintf::operator=): Likewise.
64 2013-01-17 Daiki Ueno <ueno@gnu.org>
66 Fix link errors related to C99-style extern inline.
67 Reported by Sam Thursfield <sam.thursfield@codethink.co.uk>.
68 * Makefile.am (libasprintf_la_SOURCES): Add xsize.h and xsize.c.
69 (lib_asprintf_EXTRASOURCES): Remove xsize.h.
70 * xsize.h: Remove, replacing with the one from gnulib when
73 2012-12-25 Daiki Ueno <ueno@gnu.org>
75 * gettext-0.18.2 released.
77 2012-12-17 Daiki Ueno <ueno@unixuser.org>
79 * configure.ac: Use AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER.
80 Suggested by Stefano Lattarini <stefano.lattarini@gmail.com>.
82 2012-11-29 Paul Eggert <eggert@cs.ucla.edu>
84 * vasnprintf.c (MAX_ROOM_NEEDED): Now static, not static
87 2012-06-22 Bruno Haible <bruno@clisp.org>
89 * vasnprintf.c: Write "Mac OS X" instead of "MacOS X".
91 2012-02-09 Paul Eggert <eggert@cs.ucla.edu>
93 maint: replace FSF snail-mail addresses with URLs
94 * vasnprintf.c, xsize.h:
95 Replace FSF snail mail addresses with URLs, as per GNU coding
96 standards. See glibc bug
97 <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
99 2012-02-05 Paul Eggert <eggert@cs.ucla.edu>
101 * vasnprintf.c: Spelling fixes.
103 2012-01-26 Bruno Haible <bruno@clisp.org>
106 * autosprintf.in.h: Quote 'like this', not `like this', as per the
107 recent change to the GNU coding standards.
108 * vasnprintf.h: Likewise.
109 * vasprintf.h: Likewise.
110 * INSTALL: Process through sed -e "s/\`\([^']*\)'/‘\1’/g"
112 2012-01-04 Bruno Haible <bruno@clisp.org>
114 Talk about "native Windows API", not "Win32".
115 * vasnprintf.c: Update comments to mention native Windows.
117 2011-10-15 Bruno Haible <bruno@clisp.org>
119 vasnprintf: Optimize bit search operation.
120 * vasnprintf.c (divide): Use optimizations from gnulib's
123 2011-10-15 Bruno Haible <bruno@clisp.org>
125 vasnprintf: Fix comments.
126 * vasnprintf.c (decode_long_double, decode_double): Fix comments.
128 2011-06-06 Bruno Haible <bruno@clisp.org>
130 Ensure mbstate_t gets defined in libasprintf.
131 * configure.ac: Invoke AC_TYPE_MBSTATE_T. Needed on HP-UX 11.31.
133 2011-06-04 Bruno Haible <bruno@clisp.org>
135 Ensure intmax_t gets defined in libasprintf.
136 * configure.ac: Invoke gl_AC_TYPE_INTMAX_T instead of gt_TYPE_INTMAX_T.
138 2011-06-03 Bruno Haible <bruno@clisp.org>
140 * Makefile.am (lib_asprintf_EXTRASOURCES): Add verify.h.
142 2010-10-10 Paul Eggert <eggert@cs.ucla.edu>
144 rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
145 * vasnprintf.c: Include "verify.h".
146 (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify): Remove, replacing
149 2011-06-03 Bruno Haible <bruno@clisp.org>
151 Copyright: Use LGPL 2.1 instead of LGPL 2.0.
152 * COPYING.LIB: Replace with text of LGPL 2.1.
153 * *.h, *.c, *.cc, Makefile.am: Update copyright header.
155 2011-02-23 Bruno Haible <bruno@clisp.org>
157 Fix misindentation of preprocessor directives.
158 * vasnprintf.c (decode_long_double): Reindent preprocessor directives.
160 2011-02-04 Bruno Haible <bruno@clisp.org>
162 vasnprintf: Reduce use of malloc for small format strings.
163 * printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
164 (arguments): Add room for the first 7 arguments.
165 * printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
166 (char_directives, u8_directives, u16_directives, u32_directives): Add
167 room for the first 7 directives.
168 * printf-parse.c: Include <string.h>.
169 (PRINTF_PARSE): Change memory handling code so that it uses the first
170 7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
171 * vasnprintf.c (VASNPRINTF): Update memory handling code.
172 Reported by Pádraig Brady <P@draigbrady.com>.
174 2010-11-20 Bruno Haible <bruno@clisp.org>
176 Ensure that <features.h> is included before __GLIBC__ is tested.
177 * printf-parse.h: Include <features.h>.
178 * configure.ac: Test for <features.h>.
179 Reported by Mike Frysinger <vapier@gentoo.org>.
181 2010-11-20 Bruno Haible <bruno@clisp.org>
184 * printf-parse.h (FLAG_LOCALIZED): Treat uClibc like a non-glibc platform.
185 * printf-parse.c (PRINTF_PARSE): Likewise.
186 * vasnprintf.c (decimal_point_char): Treat uClibc like glibc.
187 (VASNPRINTF): Treat uClibc like a non-glibc platform.
188 Reported by Mike Frysinger <vapier@gentoo.org>.
190 2010-11-20 Bruno Haible <bruno@clisp.org>
193 * vasnprintf.c (VASNPRINTF): Fix comment.
195 2010-11-07 Bruno Haible <bruno@clisp.org>
197 vasnprintf: Support I flag on glibc systems.
198 * printf-parse.h (FLAG_LOCALIZED): New macro.
199 * printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
200 * vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
203 2010-11-07 Bruno Haible <bruno@clisp.org>
205 Rename autosprintf.h.in to autosprintf.in.h.
206 * autosprintf.in.h: New file, renamed from autosprintf.h.in.
207 * Makefile.am (autosprintf.h, EXTRA_DIST): Update.
209 2010-10-14 Bruno Haible <bruno@clisp.org>
211 vasnprintf: Don't set errno to 0.
212 * vasnprintf.c (VASNPRINTF): Save and restore errno around the block
214 Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
216 2010-06-04 Bruno Haible <bruno@clisp.org>
218 * gettext-0.18.1 released.
220 2010-05-09 Bruno Haible <bruno@clisp.org>
222 * gettext-0.18 released.
224 2010-05-09 Bruno Haible <bruno@clisp.org>
226 vasnprintf: Fix syntax errors in libintl build on mingw.
227 * vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
228 pad_ourselves and prec_ourselves after use.
230 2010-04-24 Bruno Haible <bruno@clisp.org>
232 vasnprintf: Correct errno value in case of out-of-memory.
233 * vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF or
234 sprintf. Use the errno value from SNPRINTF or sprintf.
235 Reported by Ian Beckwith <ianb@erislabs.net>.
237 2010-04-10 Bruno Haible <bruno@clisp.org>
239 vasnprintf: Correct handling of unconvertible wide string arguments.
240 * vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
242 (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
243 if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
244 smaller than the expected maximum need for the directive. Set errno to
245 EILSEQ, not EINVAL, when the directive is 'c' or 's'.
246 (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
247 Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
249 2010-04-10 Bruno Haible <bruno@clisp.org>
251 vasnprintf: Fix crash in %ls directive.
252 * vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
253 string is passed as argument to %ls, with no precision and no width.
254 Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
256 2010-04-10 Bruno Haible <bruno@clisp.org>
258 vasnprintf: Fix multiple test failures on mingw.
259 * vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not _snprintf,
260 or snwprintf, not _snwprintf.
262 2010-01-01 Bruno Haible <bruno@clisp.org>
264 * vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is defined,
265 use wctomb instead of wcrtomb.
267 2009-12-12 Bruno Haible <bruno@clisp.org>
269 * *.h, *.c: Untabify.
271 2009-11-22 Bruno Haible <bruno@clisp.org>
273 * vasnprintf.c (decimal_point_char): Choose the fast path also on
276 2009-11-17 Eric Blake <ebb9@byu.net>
278 * vasnprintf.c (VASNPRINTF): Avoid shadowing our own local variables.
280 2009-08-20 Eric Blake <ebb9@byu.net>
282 * vasnprintf.c (decimal_point_char): Avoid warning on old-style
285 2009-08-14 Bruno Haible <bruno@clisp.org>
287 Use the gnulib module 'errno'.
288 * Makefile.am: Include Makefile.gnulib.
289 (ACLOCAL_AMFLAGS): Add -I gnulib-m4.
290 (EXTRA_DIST): Add gnulib-m4/gnulib-cache.m4.
291 (BUILT_SOURCES, noinst_LTLIBRARIES): New variables.
292 * configure.ac (AC_PREREQ): Require autoconf 2.59 or newer.
293 Invoke gl_EARLY, gl_INIT. Don't invoke gl_EOVERFLOW. Remove the alloca
296 2009-08-10 Bruno Haible <bruno@clisp.org>
298 * vasnprintf.c (DCHAR_SET): Undefine at the end.
300 2009-06-06 Bruno Haible <bruno@clisp.org>
302 * configure.ac (AM_INIT_AUTOMAKE): Add 'silent-rules' option.
303 * Makefile.am (libasprintf.la): Silence 'make' output if silent-rules.
305 2009-06-06 Bruno Haible <bruno@clisp.org>
307 * configure.ac: Pass package and version to AC_INIT instead of
310 2009-05-21 Bruno Haible <bruno@clisp.org>
312 Assume automake >= 1.10.2.
313 * configure.ac (AC_CONFIG_FILES): Remove FIX_MAKEFILE_COMPILE,
314 FIX_MAKEFILE_INFO invocations.
316 2009-04-26 Bruno Haible <bruno@clisp.org>
318 * vasnprintf.c (VASNPRINTF): Update after the calling convention of
319 u*_conv_from_encoding and u*_conv_to_encoding changed.
321 2009-04-08 Bruno Haible <bruno@clisp.org>
323 * Makefile.am (SUFFIXES, CLEANFILES): Remove variables. Not needed any
326 2009-03-23 Jim Meyering <meyering@redhat.com>
328 * vasnprintf.c (divide): Fix typo in comment.
330 2009-02-26 Bruno Haible <bruno@clisp.org>
332 Fix *printf behaviour regarding the %ls directive.
333 * vasnprintf.c (local_wcslen, VASNPRINTF): Handle
334 NEED_PRINTF_DIRECTIVE_LS.
336 2009-02-23 Bruno Haible <bruno@clisp.org>
338 Fix invalid read past end of memory block.
339 * vasnprintf.c (DCHAR_SET): Define.
340 (local_wcslen): Define only when needed.
341 (local_strnlen, local_wcsnlen): New functions.
342 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
343 directives that involve a conversion ourselves.
344 * configure.ac: Also check for strnlen, wcsnlen, mbrtowc, wcrtomb.
346 2009-01-14 Bruno Haible <bruno@clisp.org>
348 * configure.ac: More consistent m4 quoting.
350 2008-09-22 Eric Blake <ebb9@byu.net>
351 Bruno Haible <bruno@clisp.org>
353 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
354 * vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that supply %A
355 but mishandle pseudo-NaN.
356 Reported by Simon Josefsson.
358 2008-09-18 Bruno Haible <bruno@clisp.org>
360 * vasnprintf.c (VASNPRINTF): When printing ±0.0L in
361 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
362 digits for the exponent.
364 2008-09-18 Jim Meyering <meyering@redhat.com>
365 Bruno Haible <bruno@clisp.org>
367 * vasnprintf.c (decimal_point_char): Define also if
368 NEED_PRINTF_INFINITE_LONG_DOUBLE.
370 2008-09-16 Bruno Haible <bruno@clisp.org>
371 and Eric Blake <ebb9@byu.net>
373 vasnprintf: support Irix 5.3
374 * vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms that
375 mishandle long double infinity.
376 Reported by Tom G. Christensen.
378 2008-09-02 Eric Blake <ebb9@byu.net>
380 vasnprintf-posix: handle large precision via %.*d
381 * vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
382 when handling it ourselves.
383 Reported by Alain Guibert.
385 2008-07-10 Ben Pfaff <blp@gnu.org>
387 * vasnprintf.c: Update references to renamed include files.
389 2008-05-21 Bruno Haible <bruno@clisp.org>
391 Avoid one more warning from gcc.
392 * vasnprintf.c (IF_LINT): Update comments.
393 (VASNPRINTF): Use it also for the 'prefix' array initializer.
395 2008-05-21 Jim Meyering <meyering@redhat.com>
397 avoid a warning from gcc
398 * vasnprintf.c (IF_LINT): Define.
399 (scale10_round_decimal_long_double):
400 Use it to avoid a "may be used uninitialized" warning.
401 (scale10_round_decimal_double): Likewise.
403 2008-05-16 Jim Meyering <meyering@redhat.com>
404 Bruno Haible <bruno@clisp.org>
406 Avoid some warnings from "gcc -Wshadow".
407 * vasnprintf.c (exp, remainder): Define to different identifiers.
409 2008-04-19 Bruno Haible <bruno@clisp.org>
411 Work around snprintf bug on Linux libc5.
412 * vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
414 2008-04-19 Bruno Haible <bruno@clisp.org>
416 * vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error from
417 0.0058 to less than 10^-7.
419 2008-04-19 Bruno Haible <bruno@clisp.org>
421 Fix rounding when a precision is given.
422 * vasnprintf.c (is_borderline): New function.
423 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
425 Reported by John Darrington <john@darrington.wattle.id.au> via
426 Ben Pfaff <blp@cs.stanford.edu>.
428 2008-03-30 Bruno Haible <bruno@clisp.org>
431 * vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
432 Don't consider the width for tmp_length. Check count against tmp_length
433 before doing the padding. Ensure enough allocation during padding.
435 2008-03-30 Bruno Haible <bruno@clisp.org>
437 * vasnprintf.c (EOVERFLOW): Remove fallback.
439 2008-03-30 Bruno Haible <bruno@clisp.org>
441 Fix bug introduced on 2007-06-10.
442 * vasnprintf.c (VASNPRINTF): When performing zero-padding, use
443 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
445 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
447 * xsize.h: Fix typo in comment: s/tupe/type/.
449 2008-02-07 Bruno Haible <bruno@clisp.org>
451 * vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
452 Avoids a crash on Windows Vista.
453 Reported by Adam Strzelecki <ono@java.pl> via
454 Simon Josefsson <simon@josefsson.org>.
456 2008-02-06 Bruno Haible <bruno@clisp.org>
458 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
459 * vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
460 Reported by Peter Fales <psfales@alcatel-lucent.com>.
462 2008-02-06 Bruno Haible <bruno@clisp.org>
464 Fix bug introduced on 2007-06-10.
465 * vasnprintf.c (VASNPRINTF): Perform zero-padding also if
466 !NEED_PRINTF_FLAG_ZERO.
468 2008-01-29 Jim Meyering <meyering@redhat.com>
470 vasnprintf.c: Avoid warning about unused label
471 * vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
472 "overflow" label definition and associated code with the
473 same cpp condition that guards the sole use of that label.
475 2008-01-26 Bruno Haible <bruno@clisp.org>
477 Rename isnan, applicable to 'double' only, to isnand.
478 * vasnprintf.c: Include isnand.h instead of isnan.h.
479 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
481 2008-01-08 Jim Meyering <meyering@redhat.com>
482 Bruno Haible <bruno@clisp.org>
484 * printf-parse.c (PRINTF_PARSE): Handle a size specifier "q" on MacOS X
485 and a size specifier "I64" on mingw. Needed for PRIdMAX.
486 Reported by Peter Fales in
487 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
489 2008-04-20 Bruno Haible <bruno@clisp.org>
491 * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
493 2007-11-26 Bruno Haible <bruno@clisp.org>
495 * vasnprintf.c (decode_long_double): Don't abort if the 'long double'
496 type has excess precision.
497 Reported by Jim Meyering in
498 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
500 2007-11-10 Bruno Haible <bruno@clisp.org>
502 * configure.ac: Do _snprintf check like gnulib's vasnprintf.m4 does.
504 2007-11-10 Bruno Haible <bruno@clisp.org>
506 * configure.ac: Invoke AC_TYPE_LONG_LONG_INT instead of
507 gl_AC_TYPE_LONG_LONG. Don't invoke gt_TYPE_LONGDOUBLE.
508 Report and patch by Kacper.
510 2007-11-10 Bruno Haible <bruno@clisp.org>
512 * configure.ac: Invoke gl_EOVERFLOW.
514 2007-11-09 Bruno Haible <bruno@clisp.org>
516 * vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf with a
519 2007-11-09 Bruno Haible <bruno@clisp.org>
521 * vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf buffer.
522 Fixes an inefficiency introduced on 2007-11-03.
524 2007-11-07 Bruno Haible <bruno@clisp.org>
526 * gettext-0.17 released.
528 2007-11-05 Bruno Haible <bruno@clisp.org>
530 * vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
531 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
532 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
533 Reported by Eric Blake.
535 2007-11-04 Bruno Haible <bruno@clisp.org>
537 * vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
539 2007-06-11 Bruno Haible <bruno@clisp.org>
541 * printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
543 Reported by Eric Blake.
545 2007-06-10 Bruno Haible <bruno@clisp.org>
547 * printf-args.h (PRINTF_FETCHARGS): New macro.
548 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
550 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
551 a_u32_string variants.
552 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
553 * printf-args.c: Don't include config.h and the specification header
554 if PRINTF_FETCHARGS is already defined.
555 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
556 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
557 TYPE_U16_STRING, TYPE_U32_STRING.
559 2007-11-04 Bruno Haible <bruno@clisp.org>
561 * vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
563 2007-11-04 Bruno Haible <bruno@clisp.org>
565 * vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
567 2007-11-03 Bruno Haible <bruno@clisp.org>
569 * vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
570 (decode_double): New function, copied from decode_long_double.
571 (scale10_round_decimal_decoded): New function, extracted from
572 scale10_round_decimal_long_double.
573 (scale10_round_decimal_long_double): Use it.
574 (scale10_round_decimal_double): New function.
575 (floorlog10): New function.
576 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
578 2007-11-03 Bruno Haible <bruno@clisp.org>
580 * vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return value
582 Needed for OSF/1 5.1.
584 2007-11-03 Bruno Haible <bruno@clisp.org>
586 Fix out-of-memory handling of vasnprintf.
587 * printf-parse.c: Include <errno.h>.
588 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
589 * vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno is
592 2007-10-20 Bruno Haible <bruno@clisp.org>
594 * vasnprintf.c (VASNPRINTF): Don't report overflow if the available
595 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
596 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
598 2007-10-18 Bruno Haible <bruno@clisp.org>
600 * vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
601 Reported by Jim Meyering.
603 2007-07-13 Bruno Haible <bruno@clisp.org>
605 * vasnprintf.c (decimal_point_char): Define also if
606 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
607 && !NEED_PRINTF_DIRECTIVE_A.
608 Reported by Clemens Koller <clemens.koller@anagramm.de> via
609 Gary V. Vaughan <gary@gnu.org>.
611 2007-06-10 Bruno Haible <bruno@clisp.org>
613 * vasnprintf.c: Don't include config.h and the specification header if
614 VASNPRINTF is already defined.
615 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
616 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
617 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
618 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
619 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
620 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
622 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
623 pad_ourselves also in this case, with the 'c' and 's' directives, and
624 with a different notion of "width".
626 2007-06-10 Bruno Haible <bruno@clisp.org>
628 * vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
629 'maxlen'. Ensure only length + width bytes are allocated, not
632 2007-06-09 Bruno Haible <bruno@clisp.org>
634 * vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
635 (CHAR_T): Remove macro.
636 (VASNPRINTF): Update.
638 2007-06-05 Bruno Haible <bruno@clisp.org>
640 * vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
641 also the %a / %A. Handle the %a / %A code before this extra handling.
643 2007-06-05 Bruno Haible <bruno@clisp.org>
645 * vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
646 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
648 2007-10-21 Bruno Haible <bruno@clisp.org>
650 * printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
653 2007-06-10 Bruno Haible <bruno@clisp.org>
655 * printf-parse.c: Don't include config.h and the specification
656 header if PRINTF_PARSE is already defined. Eliminate the set of
657 parameters for WIDE_CHAR_VERSION; the user of this file must provide
658 them now. Include c-ctype.h.
659 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
660 directive and CHAR_T_ONLY_ASCII.
662 2007-09-04 Bruno Haible <bruno@clisp.org>
664 * alloca.in.h: Renamed from alloca_.h.
665 * Makefile.am (EXTRA_DIST, alloca.h): Update.
667 2007-09-01 Bruno Haible <bruno@clisp.org>
669 * autosprintf.texi (Class autosprintf): Explain memory mangement
671 Reported at <https://savannah.gnu.org/bugs/?17659>.
673 2007-05-05 Bruno Haible <bruno@clisp.org>
675 * autosprintf.texi (ifmakeinfo): Remove alias.
676 (makeinfo): New variable.
677 * Makefile.am (autosprintf_all.html): Don't pass option -expandinfo
680 2007-05-21 Bruno Haible <bruno@clisp.org>
682 * vasnprintf.c: Update comments.
684 2007-05-20 Bruno Haible <bruno@clisp.org>
686 * vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
687 NEED_PRINTF_INFINITE.
688 (is_infinitel): New function.
689 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
691 2007-05-19 Bruno Haible <bruno@clisp.org>
693 * vasnprintf.c: Include math.h and isnan.h.
694 (is_infinite_or_zero): New function.
695 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
696 values in the %f, %F, %e, %E, %g, %G directives.
698 2007-05-19 Bruno Haible <bruno@clisp.org>
700 * vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
701 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
702 Instead of multiplying with 10^k, set extra_zeroes to k.
703 (scale10_round_long_double): Remove function.
705 2007-05-18 Bruno Haible <bruno@clisp.org>
707 * vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
708 introduced on 2007-05-06.
710 2007-05-18 Bruno Haible <bruno@clisp.org>
712 * vasnprintf.c: Include math.h and float+.h.
713 (mp_limb_t): New type.
714 (GMP_LIMB_BITS): New macro.
715 (mp_twolimb_t): New type.
716 (GMP_TWOLIMB_BITS): New macro.
718 (multiply, divide, convert_to_decimal, decode_long_double,
719 scale10_round_long_double, scale10_round_decimal_long_double,
720 floorlog10l): New functions.
721 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
722 for the %f, %F, %e, %E, %g, %G directives.
724 2007-05-18 Bruno Haible <bruno@clisp.org>
726 * vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
728 2007-05-18 Bruno Haible <bruno@clisp.org>
730 * vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld for
731 printing 64-bit integers. Needed for mingw.
733 2007-05-06 Bruno Haible <bruno@clisp.org>
735 * vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
736 padding ourselves for the floating-point directives.
738 2007-05-06 Bruno Haible <bruno@clisp.org>
740 * vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't pass
741 the ' flag character to sprintf or snprintf.
743 2007-04-11 Bruno Haible <bruno@clisp.org>
745 * vasnprintf.c (VASNPRINTF): Implement the %F directive using the %f
746 directive, if NEED_PRINTF_DIRECTIVE_F is defined.
748 2007-04-06 Bruno Haible <bruno@clisp.org>
750 * vasnprintf.c: Include <math.h>. Don't include float+.h.
751 (VASNPRINTF): Use signbit for faster determination whether to print a
754 2007-03-27 Bruno Haible <bruno@clisp.org>
756 * vasnprintf.c (decimal_point_char): New function.
757 (VASNPRINTF): Use it.
759 2007-03-25 Bruno Haible <bruno@clisp.org>
761 * vasnprintf.c: Include langinfo.h.
762 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
765 2007-03-24 Bruno Haible <bruno@clisp.org>
767 * vasnprintf.c: Include fpucw.h.
768 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
769 'long double' calculations.
771 2007-03-24 Bruno Haible <bruno@clisp.org>
773 * vasnprintf.c: Include float+.h.
774 (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
775 SIZEOF_LDBL or SIZEOF_DBL bytes.
777 2007-03-24 Bruno Haible <bruno@clisp.org>
779 * vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
780 include isnanl-nolibm.h.
782 2007-03-21 Bruno Haible <bruno@clisp.org>
784 * vasnprintf.c: Update after isnanl.h was renamed to isnanl-nolibm.h.
786 2007-03-18 Bruno Haible <bruno@clisp.org>
788 * vasnprintf.c (VASNPRINTF): Undo first part of last patch.
790 2007-03-17 Bruno Haible <bruno@clisp.org>
792 * vasnprintf.c (EOVERFLOW): New fallback definition.
793 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
794 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
796 2007-03-17 Bruno Haible <bruno@clisp.org>
798 * vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
799 before comparing it. Needed because on some platforms (e.g. x86) a
800 'long double' occupies less bytes than sizeof (long double).
802 2007-03-11 Bruno Haible <bruno@clisp.org>
804 * vasnprintf.c (sprintf): Undefine.
806 2007-03-11 Bruno Haible <bruno@clisp.org>
808 * vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
810 2007-03-09 Bruno Haible <bruno@clisp.org>
812 * vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use a
813 locale dependent decimal point, rather than always '.'.
815 2007-03-04 Bruno Haible <bruno@clisp.org>
817 * vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
819 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
821 2007-03-30 Bruno Haible <bruno@clisp.org>
823 * alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
825 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
827 * alloca_.h (alloca) [defined alloca]: Don't define or declare.
829 2007-03-08 Bruno Haible <bruno@clisp.org>
831 * vasnprintf.h: Convert tabs in the middle of lines to spaces.
833 2007-05-03 Bruno Haible <bruno@clisp.org>
835 Add support for both "makeinfo --html" and texi2html.
836 * autosprintf.texi (ifmakeinfo): New alias.
837 (Top): Use it instead of @ifinfo.
839 2007-04-06 Bruno Haible <bruno@clisp.org>
841 * printf-args.h: Assume HAVE_LONG_DOUBLE to be true.
842 * printf-args.c: Likewise.
843 * printf-parse.c: Likewise.
844 * vasnprintf.c: Likewise.
846 2007-03-29 Bruno Haible <bruno@clisp.org>
848 * Makefile.am (DEFS): New variable.
849 * vasprintf.c: Sync with gnulib.
850 * asprintf.c: Likewise.
852 2007-03-25 Bruno Haible <bruno@clisp.org>
854 * printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
855 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
857 2007-02-25 Bruno Haible <bruno@clisp.org>
859 * vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a 'a' or
862 2007-01-29 Bruno Haible <bruno@clisp.org>
864 * printf-args.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
865 * printf-args.c: Likewise.
866 * printf-parse.c: Likewise.
867 * vasnprintf.c: Likewise.
869 2006-11-01 Bruno Haible <bruno@clisp.org>
871 * printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
873 2006-10-27 Bruno Haible <bruno@clisp.org>
875 Work around automake-1.10 annoyance.
876 * Makefile.am (ACLOCAL): New macro.
878 2006-11-27 Bruno Haible <bruno@clisp.org>
880 * gettext-0.16.1 released.
882 2006-10-26 Bruno Haible <bruno@clisp.org>
884 * gettext-0.16 released.
886 2006-10-16 Bruno Haible <bruno@clisp.org>
888 Switch to automake-1.10.
889 * Makefile.am (install-dvi, install-ps, install-pdf): Remove rules.
890 (HTMLS): New variable.
891 (html-local): Use it.
892 (install-html): Remove rule.
894 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
895 Bruno Haible <bruno@clisp.org>
897 * printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
898 instead of HAVE_LONG_LONG.
899 * printf-args.c (printf_fetchargs): Likewise.
900 * printf-parse.c (PRINTF_PARSE): Likewise.
901 * vasnprintf.c (VASNPRINTF): Likewise.
903 2006-09-14 Bruno Haible <bruno@clisp.org>
905 * lib-asprintf.c: Include <config.h> unconditionally.
906 * asnprintf.c: Likewise.
907 * asprintf.c: Likewise.
908 * printf-args.c: Likewise.
909 * printf-parse.c: Likewise.
910 * vasnprintf.c: Likewise.
911 * vasprintf.c: Likewise.
913 2006-08-26 Bruno Haible <bruno@clisp.org>
915 * vasnprintf.c (EOVERFLOW): Remove definition.
916 (VASNPRINTF): Return a string of length > INT_MAX without failing.
917 * vasprintf.c: Include errno.h, limits.h.
918 (EOVERFLOW): New fallback definition.
919 (vasprintf): Test here whether the string length is > INT_MAX.
921 2006-08-28 Bruno Haible <bruno@clisp.org>
923 * configure.ac: Remove bh_C_SIGNED invocation.
925 2006-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
927 * autosprintf.texi: Reduce spacing after "i.e." and "e.g.".
929 2006-07-25 Bruno Haible <bruno@clisp.org>
931 * windows: Remove directory.
932 * Makefile.msvc: Remove file.
933 * Makefile.am (config.h.msvc, autosprintf.h.msvc-shared): Remove rules.
934 (EXTRA_DIST): Remove Makefile.msvc, config.h.msvc,
935 autosprintf.h.msvc-shared, windows/*.
937 2006-07-25 Bruno Haible <bruno@clisp.org>
939 * Makefile.vms: Remove file.
940 * Makefile.am (config.h_vms): Remove rule.
941 (EXTRA_DIST): Remove Makefile.vms, config.h_vms.
943 2006-07-21 Bruno Haible <bruno@clisp.org>
945 * gettext-0.15 released.
947 2006-06-27 Bruno Haible <bruno@clisp.org>
949 Assume working 'const'.
950 * configure.ac: Remove AC_C_CONST invocation.
952 2006-04-14 Bruno Haible <bruno@clisp.org>
954 Assume autoconf >= 2.60.
955 * Makefile.am (docdir, dvidir, psdir, pdfdir, htmldir): Remove
958 2006-05-24 Bruno Haible <bruno@clisp.org>
960 * printf-args.c (printf_fetchargs): Turn NULL pointers for
961 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
962 Reported by Thorsten Maerz <torte@netztorte.de> via
963 Aaron Stone <aaron@serendipity.cx>.
965 2006-05-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
967 * configure.ac (LTNOUNDEF): Set to -no-undefined also on mingw and
970 2006-04-17 Bruno Haible <bruno@clisp.org>
972 * Makefile.am: Use $(mkdir_p) instead of $(mkinstalldirs).
974 2006-04-11 Bruno Haible <bruno@clisp.org>
976 * autosprintf.texi: Change license terms to FDL | GPL.
978 2006-04-01 Bruno Haible <bruno@clisp.org>
980 * texi2html: Add option -expandtex. Expand @ifhtml by default, not
981 @ifinfo. Use Unicode quotation marks instead of grave and acute
982 accents. Emit charset=UTF-8 declaration. Bump version number to 1.52b.
984 2006-01-22 Bruno Haible <bruno@clisp.org>
986 * vasnprintf.c (VASNPRINTF): In the computation of the size of the
987 temporary buffer for sprintf, take into account the precision also
988 for 'd', 'i', 'u', 'o', 'x', 'X'.
990 2005-11-23 Bruno Haible <bruno@clisp.org>
993 * configure.ac: Invoke gl_WOE32_DLL.
995 2005-07-07 Bruno Haible <bruno@clisp.org>
997 Add ability to create shared library on BeOS.
998 * configure.ac (LTNOUNDEF): New macro.
999 * Makefile.am (libasprintf_la_LDFLAGS): New variable.
1001 2005-07-05 Bruno Haible <bruno@clisp.org>
1003 * printf-args.c (printf_fetchargs): Work around broken definition of
1006 2006-06-21 Bruno Haible <bruno@clisp.org>
1008 * gettext-0.14.6 released.
1010 2005-05-23 Bruno Haible <bruno@clisp.org>
1012 * gettext-0.14.5 released.
1014 2005-04-11 Bruno Haible <bruno@clisp.org>
1016 * gettext-0.14.4 released.
1018 2005-03-22 Bruno Haible <bruno@clisp.org>
1020 * configure.ac (AC_CONFIG_AUX_DIR): Use ../../build-aux.
1021 * Makefile.am (ACLOCAL_AMFLAGS): Replace config/m4 with m4.
1023 2005-03-14 Bruno Haible <bruno@clisp.org>
1025 * gettext-0.14.3 released.
1027 2005-02-24 Bruno Haible <bruno@clisp.org>
1029 * gettext-0.14.2 released.
1031 2005-02-13 Bruno Haible <bruno@clisp.org>
1033 * Makefile.am (libasprintf.la): New rule. Needed for BeOS.
1035 2005-02-12 Bruno Haible <bruno@clisp.org>
1037 * Makefile.msvc (install): Update for 2004-01-18 change.
1038 * Makefile.vms (install): Likewise.
1040 2005-02-12 Bruno Haible <bruno@clisp.org>
1042 * vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
1044 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
1046 * alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
1048 2004-09-08 Bruno Haible <bruno@clisp.org>
1050 * vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting length
1052 * vasprintf.c (vasprintf): Don't test for length > INT_MAX any more.
1054 2004-05-14 Bruno Haible <bruno@clisp.org>
1056 * vasnprintf.c (VASNPRINTF): Correctly handle the case of a precision
1057 that consists of a '.' followed by an empty digit string.
1058 Patch by Tor Lillqvist <tml@iki.fi>.
1060 2004-04-19 Bruno Haible <bruno@clisp.org>
1062 * gettext.m4: Change jm_ to gl_ in all uses of AC_DEFINE'd names.
1064 2004-03-11 Bruno Haible <bruno@clisp.org>
1066 * Makefile.am (config.h.msvc): Fix the value of SIZE_MAX.
1068 2004-02-02 Bruno Haible <bruno@clisp.org>
1070 * Makefile.am (RM): New variable.
1072 2004-01-29 Bruno Haible <bruno@clisp.org>
1074 * gettext-0.14.1 released.
1076 2004-01-28 Bruno Haible <bruno@clisp.org>
1078 * gettext-0.14 released.
1080 2004-01-18 Bruno Haible <bruno@clisp.org>
1082 * Makefile.am (autosprintf_all.html): Renamed from autosprintf.html.
1083 Works around a problem with automake-1.8: It removes autosprintf.html
1084 during "make mostlyclean".
1086 2003-10-30 Paul Eggert <eggert@twinsun.com>
1087 Bruno Haible <bruno@clisp.org>
1089 * vasprintf.c: Include <limits.h>, <stdlib.h>.
1090 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
1092 2003-12-12 Bruno Haible <bruno@clisp.org>
1094 Assume automake-1.8.
1095 * Makefile.am (clean-local): Renamed from clean-am.
1096 (html-local): Renamed from html.
1097 (ps, pdf, .texi.pdf): Remove rules.
1098 (TEXI2PDF): Remove variable.
1100 2003-12-17 Bruno Haible <bruno@clisp.org>
1102 * gettext-0.13.1 released.
1104 2003-12-09 Bruno Haible <bruno@clisp.org>
1106 * Makefile.am (MAKEINFOFLAGS): New variable.
1108 2003-11-30 Bruno Haible <bruno@clisp.org>
1110 * gettext-0.13 released.
1112 2003-11-28 Bruno Haible <bruno@clisp.org>
1114 * configure.ac: Invoke AC_C_INLINE.
1115 * Makefile.am (config.h.msvc): Define SIZE_MAX and inline.
1117 2003-11-23 Paul Eggert <eggert@twinsun.com>
1118 Bruno Haible <bruno@clisp.org>
1120 * printf-parse.h: Don't include sys/types.h.
1121 (ARG_NONE): New macro.
1122 (char_directive): Change type of *arg_index fields to size_t.
1123 * printf-parse.c: Don't include sys/types.h.
1124 (SSIZE_MAX): Remove macro.
1125 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
1126 Remove unnecessary overflow check.
1127 * vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
1129 * configure.ac: Don't invoke gt_TYPE_SSIZE_T.
1131 2003-11-19 Bruno Haible <bruno@clisp.org>
1133 * configure.ac: Better test for ptrdiff_t. Invoke gt_TYPE_SSIZE_T and
1136 2003-11-17 Bruno Haible <bruno@clisp.org>
1138 * vasnprintf.c (alloca): Remove fallback definition.
1139 (freea): Remove definition.
1140 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
1141 Reported by Paul Eggert.
1143 2003-11-16 Paul Eggert <eggert@twinsun.com>
1144 Bruno Haible <bruno@clisp.org>
1146 Protect against address arithmetic overflow.
1147 * printf-args.h: Include stddef.h.
1148 (arguments): Change type of field 'count' to size_t.
1149 * printf-args.c (printf_fetchargs): Use size_t instead of
1150 'unsigned int' where appropriate.
1151 * printf-parse.h: Include sys/types.h.
1152 (char_directive): Change type of *arg_index fields to ssize_t.
1153 (char_directives): Change type of fields 'count', max_*_length to
1155 * printf-parse.c: Include sys/types.h and xsize.h.
1156 (SSIZE_MAX): Define fallback value.
1157 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
1158 instead of 'int' where appropriate. Check a_allocated, d_allocated
1159 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
1160 * vasnprintf.c: Include xsize.h.
1161 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
1162 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
1163 overflow. Avoid wraparound when converting a width or precision from
1165 * xsize.h: New file, from gnulib.
1166 * Makefile.am (lib_asprintf_EXTRASOURCES): Add xsize.h.
1168 2003-11-04 Bruno Haible <bruno@clisp.org>
1170 * Makefile.am (MAKEINFO): Set LC_MESSAGES and LC_ALL to empty as well.
1172 2003-10-31 Bruno Haible <bruno@clisp.org>
1174 * configure.ac: Remove argument of FIX_MAKEFILE_COMPILE,
1177 2003-10-19 Jim Meyering <jim@meyering.net>
1179 * vasnprintf.c (VASNPRINTF): Work around losing snprintf on HPUX 10.20.
1181 2003-08-29 Bruno Haible <bruno@clisp.org>
1183 * configure.ac: Test whether _snprintf is declared, not only existent
1185 * vasnprintf.c: Test HAVE_DECL__SNPRINTF instead of HAVE__SNPRINTF.
1186 Test HAVE_DECL__SNWPRINTF instead of HAVE__SNWPRINTF.
1187 * Makefile.am (config.h.msvc): Define HAVE_DECL__SNPRINTF instead of
1188 defining snprintf as a macro.
1190 2003-08-24 Bruno Haible <bruno@clisp.org>
1192 * vasnprintf.c (local_wcslen): Protect against multiple definition.
1193 (USE_SNPRINTF): Define also if only _snprintf() is available.
1194 (SNPRINTF): Possibly define as _snprintf or _snwprintf.
1195 * configure.ac: Also check for _snprintf.
1197 2003-08-11 Bruno Haible <bruno@clisp.org>
1199 * vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
1200 (VASNPRINTF): Use it instead of wcslen.
1201 * configure.ac: Also check for wcslen.
1202 * Makefile.am (config.h_vms): Set HAVE_WCSLEN.
1203 (config.h.msvc): Likewise.
1205 2003-06-20 Bruno Haible <bruno@clisp.org>
1207 * configure.ac: Invoke gt_PRINTF_POSIX.
1208 * lib-asprintf.h: Ignore an existing vasprintf() if it doesn't support
1209 POSIX/XSI format strings.
1210 * lib-asprintf.c: Likewise.
1211 * Makefile.am (config.h_vms): Define HAVE_POSIX_PRINTF.
1213 2003-06-19 Bruno Haible <bruno@clisp.org>
1215 * configure.ac (jm_AC_TYPE_LONG_LONG): Replaces gt_TYPE_LONGLONG.
1216 * printf-parse.c: Generalize to it can be compiled for wide strings.
1217 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
1218 * vasnprintf.c: Generalize to it can be compiled for wide strings.
1219 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
1220 SNPRINTF): New macros.
1221 Don't include <alloca.h> if the file is used inside libintl.
1223 2003-05-30 Bruno Haible <bruno@clisp.org>
1225 * autosprintf.texi: Tweak @dircategory and @direntry.
1226 Reported by Karl Berry <karl@freefriends.org>.
1228 2003-05-22 Bruno Haible <bruno@clisp.org>
1230 * gettext-0.12.1 released.
1232 2003-05-20 Bruno Haible <bruno@clisp.org>
1234 * Makefile.am (config.h_vms, config.h.msvc, autosprintf.h.msvc-shared):
1237 2003-05-19 Bruno Haible <bruno@clisp.org>
1239 * windows/asprintf.rc: Include <winver.h>.
1240 Reported by Perry Rapp.
1242 2003-05-18 Bruno Haible <bruno@clisp.org>
1244 * Makefile.msvc (DEBUGFLAGS): New variable.
1245 (asprintf.lib): Use it.
1247 2003-05-17 Bruno Haible <bruno@clisp.org>
1249 * gettext-0.12 released.
1251 2003-04-12 Bruno Haible <bruno@clisp.org>
1253 * Makefile.am (config.h_vms): Renamed from config.h.vms.
1254 * Makefile.vms: New variables ABIFLAGS, DEFS. Avoid rules with no
1255 lines. Update library creation rule. Don't use the force target.
1256 Correct wildcard syntax.
1257 Suggested by Jouk Jansen <joukj@hrem.stm.tudelft.nl>.
1259 2003-04-12 Bruno Haible <bruno@clisp.org>
1261 * Makefile.am (docdir): Use datadir instead of prefix.
1262 * Makefile.msvc (datadir): New variable.
1263 (sub_docdir): Use it instead of prefix.
1264 (install, installdirs): Update.
1265 * Makefile.vms (datadir): New variable.
1266 (sub_docdir): Use it instead of prefix.
1268 2003-03-30 Bruno Haible <bruno@clisp.org>
1270 * Makefile.vms: New file.
1271 * Makefile.am (config.h.vms): New rule.
1272 (EXTRA_DIST): Add Makefile.vms and config.h.vms.
1274 2003-03-17 Bruno Haible <bruno@clisp.org>
1276 Native Woe32/MSVC support.
1277 * autosprintf.h.in: Renamed from autosprintf.h.
1278 * Makefile.msvc: New file.
1279 * README.woe32: New file.
1280 * windows/dllexport.h: New file.
1281 * windows/asprintf.rc: New file.
1282 * Makefile.am (EXTRA_DIST): Add them and config.h.msvc and
1284 (autosprintf.h): New rule.
1285 (MOSTLYCLEANFILES): Add autosprintf.h.
1286 (dist-hook): Don't distribute autosprintf.h.
1287 (config.h.msvc, autosprintf.h.msvc-shared): New rules.
1289 2003-02-22 Bruno Haible <bruno@clisp.org>
1291 * autosprintf.texi: Add comment about indices.
1292 * Makefile.am (MOSTLYCLEANFILES): No need to clean the unused indices.
1293 (The automake generated rule already cleans them.)
1295 2003-02-22 Bruno Haible <bruno@clisp.org>
1297 * Makefile.am (installdirs): Remove dependency, redundant with
1300 2003-02-18 Bruno Haible <bruno@clisp.org>
1302 * Makefile.am (clean-am): New rule. For Solaris cc.
1304 2003-02-12 Bruno Haible <bruno@clisp.org>
1306 * configure.ac: Renamed from configure.in. Invoke AC_CONFIG_AUX_DIR.
1307 Invoke AC_FUNC_ALLOCA instead of gl_FUNC_ALLOCA. Remove redundant
1308 postprocessing of Makefile.
1309 * Makefile.am (ACLOCAL_AMFLAGS): Add -I ../../config/m4.
1310 ($(libasprintf_la_OBJECTS)): Make alloca.h dependency effective.
1312 2003-01-03 Albert Chin <libtool@thewrittenword.com>
1314 * ltmain.sh: Don't pass -R flags found in a .la's dependency_libs
1315 variable directly down to the linker.
1316 Reported by Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>.
1318 2003-01-12 Bruno Haible <bruno@clisp.org>
1320 * configure.in: Invoke gl_FUNC_ALLOCA instead of AC_FUNC_ALLOCA.
1321 * alloca_.h: New file, from gnulib.
1322 * liballoca.h: Remove file.
1323 * Makefile.am: Add snippet from gnulib module alloca.
1324 (lib_asprintf_EXTRASOURCES): Remove liballoca.h.
1325 * vasnprintf.c: Include alloca.h instead of liballoca.h.
1327 2003-01-12 Bruno Haible <bruno@clisp.org>
1329 * Makefile.am: Make use of += for variables.
1331 2003-01-12 Bruno Haible <bruno@clisp.org>
1333 Portability to FreeBSD.
1334 * configure.in: Invoke gt_TYPE_WINT_T.
1335 * printf-args.h: Use HAVE_WINT_T, not HAVE_WCHAR_T, to check for
1336 availability of wint_t.
1337 * printf-argc.c: Likewise.
1338 * printf-parse.c: Likewise.
1339 * vasnprintf.c: Likewise.
1341 2002-12-07 Bruno Haible <bruno@clisp.org>
1343 Switch to autoconf-2.57 and automake-1.7.2.
1344 * configure.in: Use AC_CONFIG_FILES, because the AC_OUTPUT commands
1345 and not run any more when config.status is called to create a single
1348 2002-11-13 Bruno Haible <bruno@clisp.org>
1351 * libstdarg.h: Remove file.
1352 * Makefile.am (lib_asprintf_EXTRASOURCES): Remove libstdarg.h.
1353 * asnprintf.c: Include <stdarg.h> instead of libstdarg.h.
1354 (asnprintf): Use ANSI C function declarations. Use va_start instead of
1356 * asprintf.c: Include <stdarg.h> instead of libstdarg.h.
1357 (asnprintf): Use ANSI C function declarations. Use va_start instead of
1359 * printf-args.h (PARAMS): Remove macro.
1360 (printf_fetchargs): Use ANSI C function declarations.
1361 * printf-args.c (printf_fetchargs): Likewise.
1362 * printf-parse.h (printf_parse): Likewise.
1363 * printf-parse.c (printf_parse): Likewise.
1364 * vasnprintf.h (PARAMS): Remove macro.
1365 (asnprintf, vasnprintf): Use ANSI C function declarations.
1366 * vasnprintf.c (vasnprintf): Likewise.
1367 * vasprintf.h (PARAMS): Remove macro.
1368 (asprintf, vasprintf): Use ANSI C function declarations.
1369 * vasprintf.c (vasprintf): Likewise.
1371 2002-10-27 Bruno Haible <bruno@clisp.org>
1373 * printf-args.h, printf-args.c: New files.
1374 * printf-parse.h, printf-parse.c: New files.
1375 * vasnprintf.h, vasnprintf.c, asnprintf.c: New files.
1376 * vasprintf.h, vasprintf.c, asprintf.c: New files.
1377 * lib-asprintf.h, lib-asprintf.c: New files.
1378 * autosprintf.h, autosprintf.cc: New files.
1379 * README, NEWS, AUTHORS, COPYING, autosprintf.texi: New files.
1380 * Makefile.am, configure.in: New files.
1381 * liballoca.h, libstdarg.h: New files, from gettext-0.11.6/lib.
1382 * COPYING.LIB, INSTALL, config.guess, config.sub, install-sh,
1383 ltmain.sh, missing, mkinstalldirs, texi2html, texinfo.tex: Standard
1384 infrastructure files, from gettext-0.11.6.