[ wxwindows-Bugs-1729713 ] wxLocale causing problems with wxConfig
SourceForge.net
noreply at sourceforge.net
Fri Jun 1 14:58:51 PDT 2007
Bugs item #1729713, was opened at 2007-06-01 17:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1729713&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Brian A. Vanderburg II (brianvanderburg)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxLocale causing problems with wxConfig
Initial Comment:
When the application locale is set to something other than 'C' which may interpret numbers differently, it causes problems with wxConfig and possible other areas of the library (and even user code).
With wxConfig, the problem is caused when working with Read/Write using a double value. Since these use the library functions they expect it to be in the locale format. Saving settings in one locale and then loading the same settings with a different locale value can cause it to break.
My current fix is to just write my own half-working functions to read/write doubles in text format using '.' instead of a locale-specific period.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1729713&group_id=9863
More information about the wx-dev
mailing list