Fix wxLocale::GetInfo() in C locale under Windows.

Don't use LOCALE_USER_DEFAULT when the locale hadn't been changed because the
user default locale often (and maybe even always) is different from "C" locale
used by the CRT resulting in mismatch between the conventions used by
wxDateTime::Format(), which uses the CRT locale, and wxDateTime::Parse(),
which uses Windows format. Instead use the hard-coded values corresponding to
the "C" locale to ensure we use the same values as the CRT in this case.

This also reverts r73244 which was applies to make the unit tests pass before
this fix as it's not necessary any longer.

Closes #14918.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-12-29 21:53:13 +00:00
parent b7bd58d09a
commit 7582edfbf9
2 changed files with 45 additions and 8 deletions

View File

@@ -472,8 +472,6 @@ bool TestApp::OnInit()
if ( !TestAppBase::OnInit() )
return false;
SetCLocale();
#if wxUSE_GUI
cout << "Test program for wxWidgets GUI features\n"
#else