Mercurial > hg > octave-lojdl > gnulib-hg
changeset 11228:b58c410e2eab
printf: fix regression in previous patch
* m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Fri, 27 Feb 2009 08:46:07 -0700 |
parents | 4d46a6390e52 |
children | 6dad92faecd1 |
files | ChangeLog m4/printf.m4 |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-27 Eric Blake <ebb9@byu.net> + + printf: fix regression in previous patch + * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error. + 2009-02-27 Bruno Haible <bruno@clisp.org> * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its @@ -58,7 +63,7 @@ See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html. 2009-02-26 Eric Blake <ebb9@byu.net> - Bruno Haible <bruno@clisp.org> + Bruno Haible <bruno@clisp.org> Work around a *printf bug with %ls on Solaris. * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
--- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -1,4 +1,4 @@ -# printf.m4 serial 32 +# printf.m4 serial 33 dnl Copyright (C) 2003, 2007-2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -656,7 +656,7 @@ This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, Cygwin 1.5. */ { - static const wchar_t wstring[] = { 'a', 'b', 'c', 0 }; + static wchar_t wstring[] = { 'a', 'b', 'c', 0 }; buf[0] = '\0'; if (sprintf (buf, "%ls", wstring) < 0 || strcmp (buf, "abc") != 0)