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 
	 
	
	
	
		 
	
	
		
			
			
			
			
			
			2010-07-12 22:50:47 +00:00 
		 
	
		
			
			
			
			
			
			2010-12-15 09:51:48 +00:00 
		 
	
		
			
			
			
			
			
			2009-09-16 23:18:48 +00:00 
		 
	
		
			
			
			
			
			
			2009-08-23 22:25:12 +00:00 
		 
	
		
			
			
			
			
			
			2011-03-22 14:17:38 +00:00 
		 
	
		
			
			
			
			
			
			2009-09-07 23:00:05 +00:00 
		 
	
		
			
			
			
			
			
			2010-08-22 22:16:05 +00:00 
		 
	
		
			
			
			
			
			
			2011-04-03 20:31:32 +00:00 
		 
	
		
			
			
			
			
			
			2010-11-16 22:37:52 +00:00 
		 
	
		
			
			
			
			
			
			2010-11-05 21:37:27 +00:00 
		 
	
		
			
			
			
			
			
			2009-04-13 17:33:33 +00:00 
		 
	
		
			
			
			
			
			
			2010-10-16 23:05:26 +00:00 
		 
	
		
			
			
			
			
			
			2010-07-13 13:29:13 +00:00 
		 
	
		
			
			
			
			
			
			2010-11-20 23:53:28 +00:00 
		 
	
		
			
			
			
			
			
			2010-03-28 17:52:19 +00:00 
		 
	
		
			
			
			
			
			
			2010-11-21 13:00:13 +00:00 
		 
	
		
			
			
			
			
			
			2009-07-23 20:30:22 +00:00 
		 
	
		
			
			
			
			
			
			2010-07-13 13:29:13 +00:00 
		 
	
		
			
			
			
			
			
			2011-03-22 14:17:38 +00:00 
		 
	
		
			
			
			
			
			
			2008-01-13 01:13:03 +00:00 
		 
	
		
			
			
			
			
			
			2011-03-31 09:28:41 +00:00 
		 
	
		
			
			
			
			
			
			2009-07-23 20:30:22 +00:00 
		 
	
		
			
			
			
			
			
			2011-01-13 14:49:55 +00:00 
		 
	
		
			
			
			
			
			
			2011-04-03 22:41:58 +00:00 
		 
	
		
			
			
			
			
			
			2010-10-03 17:14:57 +00:00 
		 
	
		
			
			
			
			
			
			2011-04-06 14:37:27 +00:00 
		 
	
		
			
			
			
			
			
			2010-04-12 00:36:36 +00:00 
		 
	
		
			
			
			
			
			
			2010-10-03 17:15:24 +00:00 
		 
	
		
			
			
			
			
			
			2009-07-23 20:30:22 +00:00 
		 
	
		
			
			
			
			
			
			2010-11-10 13:53:49 +00:00 
		 
	
		
			
			
			
			
			
			2010-12-15 12:03:54 +00:00 
		 
	
		
			
			
			
			
			
			2010-11-21 13:00:06 +00:00 
		 
	
		
			
			
			
			
			
			2010-08-22 22:16:05 +00:00 
		 
	
		
			
			
			
			
			
			2010-10-03 17:14:57 +00:00 
		 
	
		
			
			
			
			
			
			2010-07-13 13:29:13 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-08 13:36:13 +00:00 
		 
	
		
			
			
			
			
			
			2011-04-03 20:31:32 +00:00 
		 
	
		
			
			
			
			
			
			2011-04-05 22:29:55 +00:00 
		 
	
		
			
			
			
			
			
			2009-07-23 20:30:22 +00:00 
		 
	
		
			
			
			
			
			
			2010-07-25 13:55:36 +00:00 
		 
	
		
			
			
			
			
			
			2010-09-17 11:17:55 +00:00 
		 
	
		
			
			
			
			
			
			2010-11-10 13:53:49 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-27 12:45:30 +00:00 
		 
	
		
			
			
			
			
			
			2010-04-07 20:32:25 +00:00 
		 
	
		
			
			
			
			
			
			2010-04-15 22:47:37 +00:00 
		 
	
		
			
			
			
			
			
			2010-08-22 22:16:05 +00:00 
		 
	
		
			
			
			
			
			
			2011-04-06 14:37:32 +00:00 
		 
	
		
			
			
			
			
			
			2011-03-30 14:16:19 +00:00 
		 
	
		
			
			
			
			
			
			2010-08-22 22:16:05 +00:00 
		 
	
		
			
			
			
			
			
			2010-08-22 22:16:05 +00:00 
		 
	
		
			
			
			
			
			
			2010-12-15 09:51:48 +00:00 
		 
	
		
			
			
			
			
			
			2004-11-22 15:12:29 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2009-06-01 11:46:36 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-27 12:46:42 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-27 12:46:42 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-27 12:46:42 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-27 12:46:42 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-27 12:46:42 +00:00 
		 
	
		
			
			
			
			
			
			2009-03-23 14:57:10 +00:00 
		 
	
		
			
			
			
			
			
			2009-01-15 13:33:51 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-27 12:46:42 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-03 15:02:45 +00:00 
		 
	
		
			
			
			
			
			
			2009-04-24 10:36:24 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-27 12:46:42 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-05 20:25:09 +00:00 
		 
	
		
			
			
			
			
			
			2009-04-24 10:36:24 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-27 12:46:42 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-05 20:25:09 +00:00 
		 
	
		
			
			
			
			
			
			2009-04-24 10:36:24 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-27 12:46:42 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-05 20:25:09 +00:00 
		 
	
		
			
			
			
			
			
			2011-02-27 12:46:42 +00:00 
		 
	
		
			
			
			
			
			
			2010-10-22 22:15:07 +00:00 
		 
	
		
			
			
			
			
			
			2011-04-04 09:21:52 +00:00 
		 
	
		
			
			
			
			
			
			2011-04-04 09:21:52 +00:00 
		 
	
		
			
			
			
			
			
			2004-04-30 20:26:14 +00:00 
		 
	
		
			
			
			
			
			
			2010-07-13 13:29:13 +00:00 
		 
	
		
			
			
			
			
			
			2011-04-05 22:29:58 +00:00