revert previous revision about localization of decimal points in GetHumanReadableSize() test strings: using CLocaleSetter is a better solution.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2010-06-06 18:52:28 +00:00
parent 8b655c806b
commit 701aa4d804
3 changed files with 20 additions and 20 deletions

View File

@@ -83,18 +83,6 @@ private:
#endif // CHANGE_SYSTEM_DATE
// helper class setting the locale to "C" for its lifetime
class CLocaleSetter
{
public:
CLocaleSetter() : m_locOld(setlocale(LC_ALL, "C")) { }
~CLocaleSetter() { setlocale(LC_ALL, m_locOld); }
private:
const char * const m_locOld;
wxDECLARE_NO_COPY_CLASS(CLocaleSetter);
};
// helper function translating week day/month names from English to the current
// locale
static wxString TranslateDate(const wxString& str)