]> git.saurik.com Git - wxWidgets.git/commit
Correct handling of %hs and %ls in our wxPrintf() implementation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Sep 2010 14:30:35 +0000 (14:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Sep 2010 14:30:35 +0000 (14:30 +0000)
commit37513b6715f79de70b8bfa9791fedb1b3c3b9931
treea100280ca8f574b7c572a958f90092868067ed10
parente2dd624761180dccdb2a542623964c8cd4fdb721
Correct handling of %hs and %ls in our wxPrintf() implementation.

The strings corresponding to %hs and %ls are always narrow/wide independently
of the build so using wxArgNormalizedString which is defined differently in
different builds doesn't make sense in wxPrintf().

Instead, simply expect the parameter of the appropriate matching type for
these conversion specifications. Any conversions to it, if necessary, had been
already done before by wxFormatString.

This fixes some VsnprintfTestCase::BigToSmallBuffer() unit test failures.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/private/wxprintf.h