This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: s?wprintf family of functions has broken %s formatter output
> `--> ./testvswprintf.exe
> this works, 1, 2, 3...
> but the following does not:
> ret: 1
> buf: >T<
>> T<
> ret: 4
> wcout: >THIS IS A TEST<
>
> The same code works well on both Ubuntu with GCC and on Windows with
> Visual Studio 2010.
I just tried your test with g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2:
$> ./testvswprintf
this works, 1, 2, 3...
but the following does not:
ret: 1
buf: >T<
>T<
ret: 4
wcout: >THIS IS A TEST<
Looks quite the same, so it’s not really a Cygwin-only problem.
My Ubuntu 11.04 is a bit dated already, so maybe you have a newer
Ubuntu version with a fixed swprintf?
Otto
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple