Vadim Zeitlin
bb5a951418
Use __WINDOWS__ for OS checks and __WXMSW__ for GUI checks (round 2).
...
This is continuation of r70796 and serves the same purpose.
Closes #14065 , #14066 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 20:31:42 +00:00
Dimitri Schoolwerth
e3778b4d9c
No code changes, fixed some typos.
...
Changed several occurrences of "it's" where "its" is meant, as well as a few other minor typos.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-30 10:57:04 +00:00
Vadim Zeitlin
cee25be77b
Correctly restore the old locale in wxXLocale functions.
...
In non-wxHAS_XLOCALE_SUPPORT case we didn't restore the original locale
correctly in wxStrtoxxx_l() functions as the return value of wxSetlocale() was
incorrectly assumed to be the old locale instead of the new one.
Fix this and also replace the macros used by the old code with a small helper
class, this simplifies the code and is less ugly.
Finally add a unit test which failed before these changes when the program ran
in any non-C locale but passes now.
Closes #13117 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-06 14:37:32 +00:00
Vadim Zeitlin
042908a1ac
use "ul" suffix instead of cast to unsigned long; this is not only shorter but also avoids gcc warning about working correctly only in C90
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-17 13:06:27 +00:00
Francesco Montorsi
8e18d24865
fix constant value for 32bit machines
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-19 20:30:27 +00:00
Francesco Montorsi
dad013ac01
extend wxXLocale with wxStrto[d,l,ul] functions; make wxXLocale::Init() a little bit smarter on Unix systems; make XLocaleTestCase not fail on systems where french/italian support is not installed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-19 18:05:49 +00:00
Vadim Zeitlin
6c58cd78a5
use hex escapes instead of 8 bit characaters ( #10105 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-23 13:08:02 +00:00
Vadim Zeitlin
f9727b1be5
fixed wxXLocale(wxLanguage) ctor under Windows, use it instead of ctor from locale string in the test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-10 17:38:37 +00:00
Vadim Zeitlin
609ea9cf02
fix compilation with VC7
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-10 17:18:04 +00:00
Vadim Zeitlin
6e4ae332ac
add wxXLocale class and wxIsxxx_l() and wxToxxx_l() functions (heavily modified and extended patch 1874287)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-10 17:03:23 +00:00