ATOF function LOCALE problem - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: ATOF function LOCALE problem (/showthread.php?tid=57557) |
ATOF function LOCALE problem - porubat - 2009-09-07 Hi all, I have compiled and installed SVN revision 22793. When I try to run xbmc it crashed. There are some information from the report: Code: ############## XBMC CRASH LOG ############### I find out thah this "bug" is due to the ATOF function in guilib/SkinInfo.cpp in funciton Create(). I have added some fprintfs to the function and I have find out that this function return double number 2,0000 as conversion from string "2.11" (skin version). Because of this the variable 'bVersionOK' became false and XBMC ended with abort(). I thing this is related to my locales. my locales: Code: LANG=cs_CZ.UTF-8 When I set the LC_NUMERIC as "us" the atof conversion is ok, and xbmc will run, with this Gtk warning Code: (FEH.py:22002): Gtk-WARNING **: Locale not supported by C library. Xbmc will run too, if I change the skin version from '2.11' to '2,11'. But when i have written small app on the same machine, which use atof to convert string "2.11" to double the output of this function was right, double number 2.11 . Approximately 3 months ago, I have no problems with this (on the same machine and OS) Regards Tomas - spiff - 2009-09-07 we have a diff @ trac for this. and before you ask; when we have the time and have fixed all the other issues with current svn - porubat - 2009-09-07 thanks |