Fix totally broken LocaleSetter class in the test suite.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Jul 2013 01:31:47 +0000 (01:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 15 Jul 2013 01:31:47 +0000 (01:31 +0000)
commit2416cd031bb3f63f6d2169fa431b0df16a3535fd
treed2cd271e4720432a114cbab8929f50425c6302ec
parenta2ae66251c6b0d3dcd9f1270e8823d9d700dd2c0
Fix totally broken LocaleSetter class in the test suite.

It was based on a completely erroneous assumption that setlocale() returns the
locale that had been previously active when it actually returns the newly set
locale.

This fixes unit test failures in StringTestCase under OS X, as the locale
wasn't correctly restored by DateTimeTestCase that used this class.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
tests/testprec.h