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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user