GNOME Bugzilla – Bug 359291
crash when localized decimal point is greater than 1 char
Last modified: 2006-10-03 16:17:09 UTC
Gcalctool crashs when run in arabic locale. Cause: In function display.c : MPstr_to_num() : The return value from get_localized_numeric_point() is asserted, which is correct, however the length of the returned decimal point is checked to ensure it is one char in length, this is not correct as in some utf locales the decimal char is greater than 1 char, e.g. arabic, which is 2 chars. So simply removing the check for 1 char fixes the issue.
Created attachment 73949 [details] [review] Patch Patch which removes the strlen() check for the localized decimal point.
Thanks Matt. I've removed the bogus assert. Change checked into CVS. I've bumped the version number in configure.in to 5.9.3. Fix will turn up in the first gcalctool tarball for GNOME 2.17.1 in a couple weeks time.