| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #903
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | FL_FLOAT_INPUT should use decimal_point from locale |
Version: | 1.1.6 |
Created By: | Jaa22 |
Assigned To: | matt |
Fix Version: | 1.1.7 (SVN: v4452) |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | Jaa22 04:33 Jun 04, 2005 |
| Fl_Input with FL_FLOAT_INPUT type uses '.' as the decimal point. But is some locales (for example, russian) it may be other character. As all formatted output routines (such as printf) and the data-conversion routines uses decimal_point character from locale, it is very inconveniently. | |
|
#2 | matt 05:00 Jul 20, 2005 |
| +1 to fix it.
I never did any 'locale' stuff, so for someone who knows, would this be correct on all platforms?
#include <locale.h> ... char *dp = localeconv()->decimal_point; ... | |
|
#3 | matt 11:12 Jul 24, 2005 |
| Fixed in Subversion repository.
flaot input widget now also accepts the decimal point and plus and minus sign from the current locale (make sure that you call 'setlocale' early in the program). | |
[ Return to Bugs & Features ]
|
| |