bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: %.1s format with vasnprintf reads more than one byte from argument


From: Eric Blake
Subject: Re: %.1s format with vasnprintf reads more than one byte from argument
Date: Thu, 26 Feb 2009 06:20:12 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 2/26/2009 4:54 AM:
> 
> Thanks for these findings! It's not only "%.*ls" which has the bug, but also
> "%ls" without a precision. I'm applying this workaround:
> 
> +static wchar_t wstring[] = { 'a', 'b', 'c', 0 };

Are we guaranteed that on all platforms, 'a' promotes to L'a'?  Or should
we explicitly write the latter?  Should we also test that %S serves as a
synonym for %ls?

> +dnl   Cygwin 2007 (= Cygwin 1.5.24)  .  .  .  .  #  #  .  .  .  .  ?  #  ?  
> ?  .  .  .  .  .  .
> +dnl   Cygwin 2006 (= Cygwin 1.5.19)  #  .  .  .  #  #  .  ?  .  #  ?  #  ?  
> ?  .  .  .  .  .  .

Looks like I need to update these rows, and add Cygwin 1.7.0.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmmlwwACgkQ84KuGfSFAYA/ZQCgrw1idbQp/fQdAvLSshwExLPQ
o7EAoMgXNxDkWbON9ju+9hgfb5JUm99b
=2Vkq
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]