Re: [Mingw-w64-public] swprintf issues with latest update in Cygwin repository

2011-12-30 Thread Prof Brian Ripley
On 30/12/2011 13:55, Chris Sutcliffe wrote: > On 30 December 2011 05:23, Kai Tietz wrote: >> 2011/12/30 JonY: >>> Thanks for the bug report, will investigate. >> >> Hmm, not sure if this is related to swprintf and mingw-POSIX variant. >> I would assume the bug here is the use of %s for a wide-strin

Re: [Mingw-w64-public] swprintf issues with latest update in Cygwin repository

2011-12-30 Thread Chris Sutcliffe
On 30 December 2011 05:23, Kai Tietz wrote: > 2011/12/30 JonY: >> Thanks for the bug report, will investigate. > > Hmm, not sure if this is related to swprintf and mingw-POSIX variant. > I would assume the bug here is the use of %s for a wide-string. Using > >   wcscpy(test, TEXT("test")); >   swpr

Re: [Mingw-w64-public] swprintf issues with latest update in Cygwin repository

2011-12-30 Thread Kai Tietz
2011/12/30 JonY : > On 12/30/2011 11:50, Chris Sutcliffe wrote: >> On 29 December 2011 19:27, Chris Sutcliffe wrote: >>> Using the latest update to the mingw-w64 packages in Cygwin, I've run >>> in to an issue where swprintf is truncating an included string. >> >> The issue is with the new __mingw_

Re: [Mingw-w64-public] swprintf issues with latest update in Cygwin repository

2011-12-30 Thread JonY
On 12/30/2011 11:50, Chris Sutcliffe wrote: > On 29 December 2011 19:27, Chris Sutcliffe wrote: >> Using the latest update to the mingw-w64 packages in Cygwin, I've run >> in to an issue where swprintf is truncating an included string. > > The issue is with the new __mingw_*printf functions that w

Re: [Mingw-w64-public] swprintf issues with latest update in Cygwin repository

2011-12-29 Thread Chris Sutcliffe
On 29 December 2011 19:27, Chris Sutcliffe wrote: > Using the latest update to the mingw-w64 packages in Cygwin, I've run > in to an issue where swprintf is truncating an included string. The issue is with the new __mingw_*printf functions that were added. Using this code: #include #include in

[Mingw-w64-public] swprintf issues with latest update in Cygwin repository

2011-12-29 Thread Chris Sutcliffe
Hi All, Using the latest update to the mingw-w64 packages in Cygwin, I've run in to an issue where swprintf is truncating an included string. In my code i have: wcscpy(method, TEXT("Logoff")); swprintf(messageText, TEXT("Are you sure you want to %s?"), method); which results in "Are you sure yo