Correctly restore the originally used C locale in wxLocale dtor.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jul 2013 22:48:20 +0000 (22:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jul 2013 22:48:20 +0000 (22:48 +0000)
commit700256bbdbf40042ecadad340f7909589a8f7ecc
tree44a25e6e40ea423b6d3a7047931b935460ef3184
parentc80ae454525958da33f8ac0fb46724ea503aa92d
Correctly restore the originally used C locale in wxLocale dtor.

Save the original locale used before we changed it instead of "restoring" the
same locate that this wxLocale object was using.

Add a unit test to verify that this does work as expected.

Closes #14873.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/intl.cpp
tests/intl/intltest.cpp