• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
12015-09-11  Daiki Ueno  <ueno@gnu.org>
2
3	* gettext 0.19.6 released.
4
52015-07-10  Daiki Ueno  <ueno@gnu.org>
6
7	* gettext 0.19.5 released.
8
92015-03-12  Daiki Ueno  <ueno@gnu.org>
10
11	* vasnprintf.c: Update from gnulib.
12
132015-01-22  Daiki Ueno  <ueno@gnu.org>
14
15	* vasnprintf.c: Update copyright year.
16
172014-12-24  Daiki Ueno  <ueno@gnu.org>
18
19	* gettext 0.19.4 released.
20
212014-10-15  Daiki Ueno  <ueno@gnu.org>
22
23	* gettext 0.19.3 released.
24
252014-09-30  Daiki Ueno  <ueno@gnu.org>
26
27	* vasnprintf.c: Update from Gnulib.
28
292014-07-14  Daiki Ueno  <ueno@gnu.org>
30
31	* gettext 0.19.2 released.
32
332014-06-10  Daiki Ueno  <ueno@gnu.org>
34
35	* gettext 0.19.1 released.
36
372014-06-02  Daiki Ueno  <ueno@gnu.org>
38
39	* gettext 0.19 released.
40
412013-06-10  Daiki Ueno  <ueno@gnu.org>
42
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>.
46
472013-03-07  Miguel Angel Arruga Vivas  <rosen644835@gmail.com>  (tiny change)
48
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__.
53
542013-03-04  Miguel Angel Arruga Vivas  <rosen644835@gmail.com>  (tiny change)
55
56	Add 'autosprintf::operator='. Needed because destructor
57	is not trivial.
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
61	idiom use.
62	* autosprintf.cc (autosprintf::operator=): Likewise.
63
642013-01-17  Daiki Ueno  <ueno@gnu.org>
65
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
71	bootstrapping.
72
732012-12-25  Daiki Ueno  <ueno@gnu.org>
74
75	* gettext-0.18.2 released.
76
772012-12-17  Daiki Ueno  <ueno@unixuser.org>
78
79	* configure.ac: Use AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER.
80	Suggested by Stefano Lattarini <stefano.lattarini@gmail.com>.
81
822012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83
84	* vasnprintf.c (MAX_ROOM_NEEDED): Now static, not static
85	inline.
86
872012-06-22  Bruno Haible  <bruno@clisp.org>
88
89	* vasnprintf.c: Write "Mac OS X" instead of "MacOS X".
90
912012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
92
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>.
98
992012-02-05  Paul Eggert  <eggert@cs.ucla.edu>
100
101	* vasnprintf.c: Spelling fixes.
102
1032012-01-26  Bruno Haible  <bruno@clisp.org>
104
105	Modernize quoting.
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"
111
1122012-01-04  Bruno Haible  <bruno@clisp.org>
113
114	Talk about "native Windows API", not "Win32".
115	* vasnprintf.c: Update comments to mention native Windows.
116
1172011-10-15  Bruno Haible  <bruno@clisp.org>
118
119	vasnprintf: Optimize bit search operation.
120	* vasnprintf.c (divide): Use optimizations from gnulib's
121	integer_length.c.
122
1232011-10-15  Bruno Haible  <bruno@clisp.org>
124
125	vasnprintf: Fix comments.
126	* vasnprintf.c (decode_long_double, decode_double): Fix comments.
127
1282011-06-06  Bruno Haible  <bruno@clisp.org>
129
130	Ensure mbstate_t gets defined in libasprintf.
131	* configure.ac: Invoke AC_TYPE_MBSTATE_T. Needed on HP-UX 11.31.
132
1332011-06-04  Bruno Haible  <bruno@clisp.org>
134
135	Ensure intmax_t gets defined in libasprintf.
136	* configure.ac: Invoke gl_AC_TYPE_INTMAX_T instead of gt_TYPE_INTMAX_T.
137
1382011-06-03  Bruno Haible  <bruno@clisp.org>
139
140	* Makefile.am (lib_asprintf_EXTRASOURCES): Add verify.h.
141
1422010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
143
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
147	with a verify call.
148
1492011-06-03  Bruno Haible  <bruno@clisp.org>
150
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.
154
1552011-02-23  Bruno Haible  <bruno@clisp.org>
156
157	Fix misindentation of preprocessor directives.
158	* vasnprintf.c (decode_long_double): Reindent preprocessor directives.
159
1602011-02-04  Bruno Haible  <bruno@clisp.org>
161
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>.
173
1742010-11-20  Bruno Haible  <bruno@clisp.org>
175
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>.
180
1812010-11-20  Bruno Haible  <bruno@clisp.org>
182
183	Port to uClibc.
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>.
189
1902010-11-20  Bruno Haible  <bruno@clisp.org>
191
192	Fix a comment.
193	* vasnprintf.c (VASNPRINTF): Fix comment.
194
1952010-11-07  Bruno Haible  <bruno@clisp.org>
196
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
201	snprintf function.
202
2032010-11-07  Bruno Haible  <bruno@clisp.org>
204
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.
208
2092010-10-14  Bruno Haible  <bruno@clisp.org>
210
211	vasnprintf: Don't set errno to 0.
212	* vasnprintf.c (VASNPRINTF): Save and restore errno around the block
213	that sets it to 0.
214	Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
215
2162010-06-04  Bruno Haible  <bruno@clisp.org>
217
218	* gettext-0.18.1 released.
219
2202010-05-09  Bruno Haible  <bruno@clisp.org>
221
222	* gettext-0.18 released.
223
2242010-05-09  Bruno Haible  <bruno@clisp.org>
225
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.
229
2302010-04-24  Bruno Haible  <bruno@clisp.org>
231
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>.
236
2372010-04-10  Bruno Haible  <bruno@clisp.org>
238
239	vasnprintf: Correct handling of unconvertible wide string arguments.
240	* vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
241	VASNPRINTF.
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>.
248
2492010-04-10  Bruno Haible  <bruno@clisp.org>
250
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>.
255
2562010-04-10  Bruno Haible  <bruno@clisp.org>
257
258	vasnprintf: Fix multiple test failures on mingw.
259	* vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not _snprintf,
260	or snwprintf, not _snwprintf.
261
2622010-01-01  Bruno Haible  <bruno@clisp.org>
263
264	* vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is defined,
265	use wctomb instead of wcrtomb.
266
2672009-12-12  Bruno Haible  <bruno@clisp.org>
268
269	* *.h, *.c: Untabify.
270
2712009-11-22  Bruno Haible  <bruno@clisp.org>
272
273	* vasnprintf.c (decimal_point_char): Choose the fast path also on
274	MacOS X.
275
2762009-11-17  Eric Blake  <ebb9@byu.net>
277
278	* vasnprintf.c (VASNPRINTF): Avoid shadowing our own local variables.
279
2802009-08-20  Eric Blake  <ebb9@byu.net>
281
282	* vasnprintf.c (decimal_point_char): Avoid warning on old-style
283	declaration.
284
2852009-08-14  Bruno Haible  <bruno@clisp.org>
286
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
294	tests.
295
2962009-08-10  Bruno Haible  <bruno@clisp.org>
297
298	* vasnprintf.c (DCHAR_SET): Undefine at the end.
299
3002009-06-06  Bruno Haible  <bruno@clisp.org>
301
302	* configure.ac (AM_INIT_AUTOMAKE): Add 'silent-rules' option.
303	* Makefile.am (libasprintf.la): Silence 'make' output if silent-rules.
304
3052009-06-06  Bruno Haible  <bruno@clisp.org>
306
307	* configure.ac: Pass package and version to AC_INIT instead of
308	AM_INIT_AUTOMAKE.
309
3102009-05-21  Bruno Haible  <bruno@clisp.org>
311
312	Assume automake >= 1.10.2.
313	* configure.ac (AC_CONFIG_FILES): Remove FIX_MAKEFILE_COMPILE,
314	FIX_MAKEFILE_INFO invocations.
315
3162009-04-26  Bruno Haible  <bruno@clisp.org>
317
318	* vasnprintf.c (VASNPRINTF): Update after the calling convention of
319	u*_conv_from_encoding and u*_conv_to_encoding changed.
320
3212009-04-08  Bruno Haible  <bruno@clisp.org>
322
323	* Makefile.am (SUFFIXES, CLEANFILES): Remove variables. Not needed any
324	more.
325
3262009-03-23  Jim Meyering  <meyering@redhat.com>
327
328	* vasnprintf.c (divide): Fix typo in comment.
329
3302009-02-26  Bruno Haible  <bruno@clisp.org>
331
332	Fix *printf behaviour regarding the %ls directive.
333	* vasnprintf.c (local_wcslen, VASNPRINTF): Handle
334	NEED_PRINTF_DIRECTIVE_LS.
335
3362009-02-23  Bruno Haible  <bruno@clisp.org>
337
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.
345
3462009-01-14  Bruno Haible  <bruno@clisp.org>
347
348	* configure.ac: More consistent m4 quoting.
349
3502008-09-22  Eric Blake  <ebb9@byu.net>
351	    Bruno Haible  <bruno@clisp.org>
352
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.
357
3582008-09-18  Bruno Haible  <bruno@clisp.org>
359
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.
363
3642008-09-18  Jim Meyering  <meyering@redhat.com>
365	    Bruno Haible  <bruno@clisp.org>
366
367	* vasnprintf.c (decimal_point_char): Define also if
368	NEED_PRINTF_INFINITE_LONG_DOUBLE.
369
3702008-09-16  Bruno Haible  <bruno@clisp.org>
371	and Eric Blake  <ebb9@byu.net>
372
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.
377
3782008-09-02  Eric Blake  <ebb9@byu.net>
379
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.
384
3852008-07-10  Ben Pfaff  <blp@gnu.org>
386
387	* vasnprintf.c: Update references to renamed include files.
388
3892008-05-21  Bruno Haible  <bruno@clisp.org>
390
391	Avoid one more warning from gcc.
392	* vasnprintf.c (IF_LINT): Update comments.
393	(VASNPRINTF): Use it also for the 'prefix' array initializer.
394
3952008-05-21  Jim Meyering  <meyering@redhat.com>
396
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.
402
4032008-05-16  Jim Meyering  <meyering@redhat.com>
404	    Bruno Haible  <bruno@clisp.org>
405
406	Avoid some warnings from "gcc -Wshadow".
407	* vasnprintf.c (exp, remainder): Define to different identifiers.
408
4092008-04-19  Bruno Haible  <bruno@clisp.org>
410
411	Work around snprintf bug on Linux libc5.
412	* vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
413
4142008-04-19  Bruno Haible  <bruno@clisp.org>
415
416	* vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error from
417	0.0058 to less than 10^-7.
418
4192008-04-19  Bruno Haible  <bruno@clisp.org>
420
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
424	9...9x.
425	Reported by John Darrington <john@darrington.wattle.id.au> via
426	Ben Pfaff <blp@cs.stanford.edu>.
427
4282008-03-30  Bruno Haible  <bruno@clisp.org>
429
430	Fix buffer overrun.
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.
434
4352008-03-30  Bruno Haible  <bruno@clisp.org>
436
437	* vasnprintf.c (EOVERFLOW): Remove fallback.
438
4392008-03-30  Bruno Haible  <bruno@clisp.org>
440
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.
444
4452008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
446
447	* xsize.h: Fix typo in comment: s/tupe/type/.
448
4492008-02-07  Bruno Haible  <bruno@clisp.org>
450
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>.
455
4562008-02-06  Bruno Haible  <bruno@clisp.org>
457
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>.
461
4622008-02-06  Bruno Haible  <bruno@clisp.org>
463
464	Fix bug introduced on 2007-06-10.
465	* vasnprintf.c (VASNPRINTF): Perform zero-padding also if
466	!NEED_PRINTF_FLAG_ZERO.
467
4682008-01-29  Jim Meyering  <meyering@redhat.com>
469
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.
474
4752008-01-26  Bruno Haible  <bruno@clisp.org>
476
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.
480
4812008-01-08  Jim Meyering  <meyering@redhat.com>
482	    Bruno Haible  <bruno@clisp.org>
483
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>.
488
4892008-04-20  Bruno Haible  <bruno@clisp.org>
490
491	* configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
492
4932007-11-26  Bruno Haible  <bruno@clisp.org>
494
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>.
499
5002007-11-10  Bruno Haible  <bruno@clisp.org>
501
502	* configure.ac: Do _snprintf check like gnulib's vasnprintf.m4 does.
503
5042007-11-10  Bruno Haible  <bruno@clisp.org>
505
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.
509
5102007-11-10  Bruno Haible  <bruno@clisp.org>
511
512	* configure.ac: Invoke gl_EOVERFLOW.
513
5142007-11-09  Bruno Haible  <bruno@clisp.org>
515
516	* vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf with a
517	size argument < 2.
518
5192007-11-09  Bruno Haible  <bruno@clisp.org>
520
521	* vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf buffer.
522	Fixes an inefficiency introduced on 2007-11-03.
523
5242007-11-07  Bruno Haible  <bruno@clisp.org>
525
526	* gettext-0.17 released.
527
5282007-11-05  Bruno Haible  <bruno@clisp.org>
529
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.
534
5352007-11-04  Bruno Haible  <bruno@clisp.org>
536
537	* vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
538
5392007-06-11  Bruno Haible  <bruno@clisp.org>
540
541	* printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
542	replacement string.
543	Reported by Eric Blake.
544
5452007-06-10  Bruno Haible  <bruno@clisp.org>
546
547	* printf-args.h (PRINTF_FETCHARGS): New macro.
548	(arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
549	TYPE_U32_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.
558
5592007-11-04  Bruno Haible  <bruno@clisp.org>
560
561	* vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
562
5632007-11-04  Bruno Haible  <bruno@clisp.org>
564
565	* vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
566
5672007-11-03  Bruno Haible  <bruno@clisp.org>
568
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.
577
5782007-11-03  Bruno Haible  <bruno@clisp.org>
579
580	* vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return value
581	is C99 compliant.
582	Needed for OSF/1 5.1.
583
5842007-11-03  Bruno Haible  <bruno@clisp.org>
585
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
590	already set.
591
5922007-10-20  Bruno Haible  <bruno@clisp.org>
593
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>.
597
5982007-10-18  Bruno Haible  <bruno@clisp.org>
599
600	* vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
601	Reported by Jim Meyering.
602
6032007-07-13  Bruno Haible  <bruno@clisp.org>
604
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>.
610
6112007-06-10  Bruno Haible  <bruno@clisp.org>
612
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
621	code accordingly.
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".
625
6262007-06-10  Bruno Haible  <bruno@clisp.org>
627
628	* vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
629	'maxlen'. Ensure only length + width bytes are allocated, not
630	length + 1 + width.
631
6322007-06-09  Bruno Haible  <bruno@clisp.org>
633
634	* vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
635	(CHAR_T): Remove macro.
636	(VASNPRINTF): Update.
637
6382007-06-05  Bruno Haible  <bruno@clisp.org>
639
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.
642
6432007-06-05  Bruno Haible  <bruno@clisp.org>
644
645	* vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
646	NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
647
6482007-10-21  Bruno Haible  <bruno@clisp.org>
649
650	* printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
651	context.
652
6532007-06-10  Bruno Haible  <bruno@clisp.org>
654
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.
661
6622007-09-04  Bruno Haible  <bruno@clisp.org>
663
664	* alloca.in.h: Renamed from alloca_.h.
665	* Makefile.am (EXTRA_DIST, alloca.h): Update.
666
6672007-09-01  Bruno Haible  <bruno@clisp.org>
668
669	* autosprintf.texi (Class autosprintf): Explain memory mangement
670	details.
671	Reported at <https://savannah.gnu.org/bugs/?17659>.
672
6732007-05-05  Bruno Haible  <bruno@clisp.org>
674
675	* autosprintf.texi (ifmakeinfo): Remove alias.
676	(makeinfo): New variable.
677	* Makefile.am (autosprintf_all.html): Don't pass option -expandinfo
678	to texi2html.
679
6802007-05-21  Bruno Haible  <bruno@clisp.org>
681
682	* vasnprintf.c: Update comments.
683
6842007-05-20  Bruno Haible  <bruno@clisp.org>
685
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.
690
6912007-05-19  Bruno Haible  <bruno@clisp.org>
692
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.
697
6982007-05-19  Bruno Haible  <bruno@clisp.org>
699
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.
704
7052007-05-18  Bruno Haible  <bruno@clisp.org>
706
707	* vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
708	introduced on 2007-05-06.
709
7102007-05-18  Bruno Haible  <bruno@clisp.org>
711
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.
717	(mpn_t): New type.
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.
723
7242007-05-18  Bruno Haible  <bruno@clisp.org>
725
726	* vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
727
7282007-05-18  Bruno Haible  <bruno@clisp.org>
729
730	* vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld for
731	printing 64-bit integers. Needed for mingw.
732
7332007-05-06  Bruno Haible  <bruno@clisp.org>
734
735	* vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
736	padding ourselves for the floating-point directives.
737
7382007-05-06  Bruno Haible  <bruno@clisp.org>
739
740	* vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't pass
741	the ' flag character to sprintf or snprintf.
742
7432007-04-11  Bruno Haible  <bruno@clisp.org>
744
745	* vasnprintf.c (VASNPRINTF): Implement the %F directive using the %f
746	directive, if NEED_PRINTF_DIRECTIVE_F is defined.
747
7482007-04-06  Bruno Haible  <bruno@clisp.org>
749
750	* vasnprintf.c: Include <math.h>. Don't include float+.h.
751	(VASNPRINTF): Use signbit for faster determination whether to print a
752	minus sign.
753
7542007-03-27  Bruno Haible  <bruno@clisp.org>
755
756	* vasnprintf.c (decimal_point_char): New function.
757	(VASNPRINTF): Use it.
758
7592007-03-25  Bruno Haible  <bruno@clisp.org>
760
761	* vasnprintf.c: Include langinfo.h.
762	(VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
763	multithread-safe.
764
7652007-03-24  Bruno Haible  <bruno@clisp.org>
766
767	* vasnprintf.c: Include fpucw.h.
768	(VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
769	'long double' calculations.
770
7712007-03-24  Bruno Haible  <bruno@clisp.org>
772
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.
776
7772007-03-24  Bruno Haible  <bruno@clisp.org>
778
779	* vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
780	include isnanl-nolibm.h.
781
7822007-03-21  Bruno Haible  <bruno@clisp.org>
783
784	* vasnprintf.c: Update after isnanl.h was renamed to isnanl-nolibm.h.
785
7862007-03-18  Bruno Haible  <bruno@clisp.org>
787
788	* vasnprintf.c (VASNPRINTF): Undo first part of last patch.
789
7902007-03-17  Bruno Haible  <bruno@clisp.org>
791
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.
795
7962007-03-17  Bruno Haible  <bruno@clisp.org>
797
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).
801
8022007-03-11  Bruno Haible  <bruno@clisp.org>
803
804	* vasnprintf.c (sprintf): Undefine.
805
8062007-03-11  Bruno Haible  <bruno@clisp.org>
807
808	* vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
809
8102007-03-09  Bruno Haible  <bruno@clisp.org>
811
812	* vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use a
813	locale dependent decimal point, rather than always '.'.
814
8152007-03-04  Bruno Haible  <bruno@clisp.org>
816
817	* vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
818	printf-frexpl.h.
819	(VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
820
8212007-03-30  Bruno Haible  <bruno@clisp.org>
822
823	* alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
824
8252006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
826
827	* alloca_.h (alloca) [defined alloca]: Don't define or declare.
828
8292007-03-08  Bruno Haible  <bruno@clisp.org>
830
831	* vasnprintf.h: Convert tabs in the middle of lines to spaces.
832
8332007-05-03  Bruno Haible  <bruno@clisp.org>
834
835	Add support for both "makeinfo --html" and texi2html.
836	* autosprintf.texi (ifmakeinfo): New alias.
837	(Top): Use it instead of @ifinfo.
838
8392007-04-06  Bruno Haible  <bruno@clisp.org>
840
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.
845
8462007-03-29  Bruno Haible  <bruno@clisp.org>
847
848	* Makefile.am (DEFS): New variable.
849	* vasprintf.c: Sync with gnulib.
850	* asprintf.c: Likewise.
851
8522007-03-25  Bruno Haible  <bruno@clisp.org>
853
854	* printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
855	(PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
856
8572007-02-25  Bruno Haible  <bruno@clisp.org>
858
859	* vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a 'a' or
860	'A' conversion.
861
8622007-01-29  Bruno Haible  <bruno@clisp.org>
863
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.
868
8692006-11-01  Bruno Haible  <bruno@clisp.org>
870
871	* printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
872
8732006-10-27  Bruno Haible  <bruno@clisp.org>
874
875	Work around automake-1.10 annoyance.
876	* Makefile.am (ACLOCAL): New macro.
877
8782006-11-27  Bruno Haible  <bruno@clisp.org>
879
880	* gettext-0.16.1 released.
881
8822006-10-26  Bruno Haible  <bruno@clisp.org>
883
884	* gettext-0.16 released.
885
8862006-10-16  Bruno Haible  <bruno@clisp.org>
887
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.
893
8942006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
895            Bruno Haible  <bruno@clisp.org>
896
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.
902
9032006-09-14  Bruno Haible  <bruno@clisp.org>
904
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.
912
9132006-08-26  Bruno Haible  <bruno@clisp.org>
914
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.
920
9212006-08-28  Bruno Haible  <bruno@clisp.org>
922
923	* configure.ac: Remove bh_C_SIGNED invocation.
924
9252006-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
926
927	* autosprintf.texi: Reduce spacing after "i.e." and "e.g.".
928
9292006-07-25  Bruno Haible  <bruno@clisp.org>
930
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/*.
936
9372006-07-25  Bruno Haible  <bruno@clisp.org>
938
939	* Makefile.vms: Remove file.
940	* Makefile.am (config.h_vms): Remove rule.
941	(EXTRA_DIST): Remove Makefile.vms, config.h_vms.
942
9432006-07-21  Bruno Haible  <bruno@clisp.org>
944
945	* gettext-0.15 released.
946
9472006-06-27  Bruno Haible  <bruno@clisp.org>
948
949	Assume working 'const'.
950	* configure.ac: Remove AC_C_CONST invocation.
951
9522006-04-14  Bruno Haible  <bruno@clisp.org>
953
954	Assume autoconf >= 2.60.
955	* Makefile.am (docdir, dvidir, psdir, pdfdir, htmldir): Remove
956	variables.
957
9582006-05-24  Bruno Haible  <bruno@clisp.org>
959
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>.
964
9652006-05-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
966
967	* configure.ac (LTNOUNDEF): Set to -no-undefined also on mingw and
968	Cygwin.
969
9702006-04-17  Bruno Haible  <bruno@clisp.org>
971
972	* Makefile.am: Use $(mkdir_p) instead of $(mkinstalldirs).
973
9742006-04-11  Bruno Haible  <bruno@clisp.org>
975
976	* autosprintf.texi: Change license terms to FDL | GPL.
977
9782006-04-01  Bruno Haible  <bruno@clisp.org>
979
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.
983
9842006-01-22  Bruno Haible  <bruno@clisp.org>
985
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'.
989
9902005-11-23  Bruno Haible  <bruno@clisp.org>
991
992	Cygwin portability.
993	* configure.ac: Invoke gl_WOE32_DLL.
994
9952005-07-07  Bruno Haible  <bruno@clisp.org>
996
997	Add ability to create shared library on BeOS.
998	* configure.ac (LTNOUNDEF): New macro.
999	* Makefile.am (libasprintf_la_LDFLAGS): New variable.
1000
10012005-07-05  Bruno Haible  <bruno@clisp.org>
1002
1003	* printf-args.c (printf_fetchargs): Work around broken definition of
1004	wint_t on mingw.
1005
10062006-06-21  Bruno Haible  <bruno@clisp.org>
1007
1008	* gettext-0.14.6 released.
1009
10102005-05-23  Bruno Haible  <bruno@clisp.org>
1011
1012	* gettext-0.14.5 released.
1013
10142005-04-11  Bruno Haible  <bruno@clisp.org>
1015
1016	* gettext-0.14.4 released.
1017
10182005-03-22  Bruno Haible  <bruno@clisp.org>
1019
1020	* configure.ac (AC_CONFIG_AUX_DIR): Use ../../build-aux.
1021	* Makefile.am (ACLOCAL_AMFLAGS): Replace config/m4 with m4.
1022
10232005-03-14  Bruno Haible  <bruno@clisp.org>
1024
1025	* gettext-0.14.3 released.
1026
10272005-02-24  Bruno Haible  <bruno@clisp.org>
1028
1029	* gettext-0.14.2 released.
1030
10312005-02-13  Bruno Haible  <bruno@clisp.org>
1032
1033	* Makefile.am (libasprintf.la): New rule. Needed for BeOS.
1034
10352005-02-12  Bruno Haible  <bruno@clisp.org>
1036
1037	* Makefile.msvc (install): Update for 2004-01-18 change.
1038	* Makefile.vms (install): Likewise.
1039
10402005-02-12  Bruno Haible  <bruno@clisp.org>
1041
1042	* vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
1043
10442004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1045
1046	* alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
1047
10482004-09-08  Bruno Haible  <bruno@clisp.org>
1049
1050	* vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting length
1051	is > INT_MAX.
1052	* vasprintf.c (vasprintf): Don't test for length > INT_MAX any more.
1053
10542004-05-14  Bruno Haible  <bruno@clisp.org>
1055
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>.
1059
10602004-04-19  Bruno Haible  <bruno@clisp.org>
1061
1062	* gettext.m4: Change jm_ to gl_ in all uses of AC_DEFINE'd names.
1063
10642004-03-11  Bruno Haible  <bruno@clisp.org>
1065
1066	* Makefile.am (config.h.msvc): Fix the value of SIZE_MAX.
1067
10682004-02-02  Bruno Haible  <bruno@clisp.org>
1069
1070	* Makefile.am (RM): New variable.
1071
10722004-01-29  Bruno Haible  <bruno@clisp.org>
1073
1074	* gettext-0.14.1 released.
1075
10762004-01-28  Bruno Haible  <bruno@clisp.org>
1077
1078	* gettext-0.14 released.
1079
10802004-01-18  Bruno Haible  <bruno@clisp.org>
1081
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".
1085
10862003-10-30  Paul Eggert  <eggert@twinsun.com>
1087            Bruno Haible  <bruno@clisp.org>
1088
1089	* vasprintf.c: Include <limits.h>, <stdlib.h>.
1090	(vasprintf): Fail if the resulting length doesn't fit in an 'int'.
1091
10922003-12-12  Bruno Haible  <bruno@clisp.org>
1093
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.
1099
11002003-12-17  Bruno Haible  <bruno@clisp.org>
1101
1102	* gettext-0.13.1 released.
1103
11042003-12-09  Bruno Haible  <bruno@clisp.org>
1105
1106	* Makefile.am (MAKEINFOFLAGS): New variable.
1107
11082003-11-30  Bruno Haible  <bruno@clisp.org>
1109
1110	* gettext-0.13 released.
1111
11122003-11-28  Bruno Haible  <bruno@clisp.org>
1113
1114	* configure.ac: Invoke AC_C_INLINE.
1115	* Makefile.am (config.h.msvc): Define SIZE_MAX and inline.
1116
11172003-11-23  Paul Eggert  <eggert@twinsun.com>
1118            Bruno Haible  <bruno@clisp.org>
1119
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
1128	fields.
1129	* configure.ac: Don't invoke gt_TYPE_SSIZE_T.
1130
11312003-11-19  Bruno Haible  <bruno@clisp.org>
1132
1133	* configure.ac: Better test for ptrdiff_t. Invoke gt_TYPE_SSIZE_T and
1134	gl_XSIZE.
1135
11362003-11-17  Bruno Haible  <bruno@clisp.org>
1137
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.
1142
11432003-11-16  Paul Eggert  <eggert@twinsun.com>
1144            Bruno Haible  <bruno@clisp.org>
1145
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
1154	size_t.
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
1164	decimal to binary.
1165	* xsize.h: New file, from gnulib.
1166	* Makefile.am (lib_asprintf_EXTRASOURCES): Add xsize.h.
1167
11682003-11-04  Bruno Haible  <bruno@clisp.org>
1169
1170	* Makefile.am (MAKEINFO): Set LC_MESSAGES and LC_ALL to empty as well.
1171
11722003-10-31  Bruno Haible  <bruno@clisp.org>
1173
1174	* configure.ac: Remove argument of FIX_MAKEFILE_COMPILE,
1175	FIX_MAKEFILE_INFO.
1176
11772003-10-19  Jim Meyering  <jim@meyering.net>
1178
1179	* vasnprintf.c (VASNPRINTF): Work around losing snprintf on HPUX 10.20.
1180
11812003-08-29  Bruno Haible  <bruno@clisp.org>
1182
1183	* configure.ac: Test whether _snprintf is declared, not only existent
1184	as a function.
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.
1189
11902003-08-24  Bruno Haible  <bruno@clisp.org>
1191
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.
1196
11972003-08-11  Bruno Haible  <bruno@clisp.org>
1198
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.
1204
12052003-06-20  Bruno Haible  <bruno@clisp.org>
1206
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.
1212
12132003-06-19  Bruno Haible  <bruno@clisp.org>
1214
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.
1222
12232003-05-30  Bruno Haible  <bruno@clisp.org>
1224
1225	* autosprintf.texi: Tweak @dircategory and @direntry.
1226	Reported by Karl Berry <karl@freefriends.org>.
1227
12282003-05-22  Bruno Haible  <bruno@clisp.org>
1229
1230	* gettext-0.12.1 released.
1231
12322003-05-20  Bruno Haible  <bruno@clisp.org>
1233
1234	* Makefile.am (config.h_vms, config.h.msvc, autosprintf.h.msvc-shared):
1235	Don't use $< here.
1236
12372003-05-19  Bruno Haible  <bruno@clisp.org>
1238
1239	* windows/asprintf.rc: Include <winver.h>.
1240	Reported by Perry Rapp.
1241
12422003-05-18  Bruno Haible  <bruno@clisp.org>
1243
1244	* Makefile.msvc (DEBUGFLAGS): New variable.
1245	(asprintf.lib): Use it.
1246
12472003-05-17  Bruno Haible  <bruno@clisp.org>
1248
1249	* gettext-0.12 released.
1250
12512003-04-12  Bruno Haible  <bruno@clisp.org>
1252
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>.
1258
12592003-04-12  Bruno Haible  <bruno@clisp.org>
1260
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.
1267
12682003-03-30  Bruno Haible  <bruno@clisp.org>
1269
1270	* Makefile.vms: New file.
1271	* Makefile.am (config.h.vms): New rule.
1272	(EXTRA_DIST): Add Makefile.vms and config.h.vms.
1273
12742003-03-17  Bruno Haible  <bruno@clisp.org>
1275
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
1283	autosprintf.h.in.
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.
1288
12892003-02-22  Bruno Haible  <bruno@clisp.org>
1290
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.)
1294
12952003-02-22  Bruno Haible  <bruno@clisp.org>
1296
1297	* Makefile.am (installdirs): Remove dependency, redundant with
1298	automake >= 1.6.
1299
13002003-02-18  Bruno Haible  <bruno@clisp.org>
1301
1302	* Makefile.am (clean-am): New rule. For Solaris cc.
1303
13042003-02-12  Bruno Haible  <bruno@clisp.org>
1305
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.
1311
13122003-01-03  Albert Chin  <libtool@thewrittenword.com>
1313
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>.
1317
13182003-01-12  Bruno Haible  <bruno@clisp.org>
1319
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.
1326
13272003-01-12  Bruno Haible  <bruno@clisp.org>
1328
1329	* Makefile.am: Make use of += for variables.
1330
13312003-01-12  Bruno Haible  <bruno@clisp.org>
1332
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.
1340
13412002-12-07  Bruno Haible  <bruno@clisp.org>
1342
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
1346	file.
1347
13482002-11-13  Bruno Haible  <bruno@clisp.org>
1349
1350	Assume ANSI C.
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
1355	VA_START.
1356	* asprintf.c: Include <stdarg.h> instead of libstdarg.h.
1357	(asnprintf): Use ANSI C function declarations. Use va_start instead of
1358	VA_START.
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.
1370
13712002-10-27  Bruno Haible  <bruno@clisp.org>
1372
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.
1385