decimal separator

Hi all,

On one computer, the same gtk program considers the decimal separator as a coma, on the other one as a point. Obviously, this is linked to regional settings (there is a call to gtk_set_locale in gtk_main() if I understand well). What's more surprising is that on both computers, my regional settings on KDE are set to a point as decimal separator (but during the first instalation, local parameters were belgian ones - and coma separator-, which should be the source of the problem). So the call to gtk_set_locale should read the information in another file than the settings of KDE, but which one ?

Maybe, the solution (but not the nicest !) should be to call gtk_disable_set_locale but how to know which ones will be the 'default' parameters.

Thanks for any hint !


** Olivier Pierard                                  **
** PhD student, UCL                                 **
** Center for Systems Eng. and Appl. Mech. (CESAME) **
** Bâtiment Euler, 4 Avenue G. Lemaitre             **
** B-1348 Louvain-la-Neuve, Belgium                 **
** Tel.:+32 10 47.80.26                             **
** Fax.:+32 10 47.21.80                             **
**               **

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]