FLTK logo

STR #903

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.