glib needs to support internationalized numbers
Submitted by Amir Hedayaty
There is need to support international numbers (like those used in Arabic, Persian, Indic languages, etc.) in glib. Some of glib numerical functions such as 'g_strtod' are Unicode-based functions and so, one expects them to have internationalized behavior.
There is a need for having functions 'g_strtoll' and 'g_strtoull', and also reverse functions 'g_dtostr', 'g_lltostr', and 'g_ulltostr', these would be very helpful for writing properly internationalized applications using glib and GNOME libraries.
There is one option on how to implement the string-to-number functions. There are two ways to implement them:
- Accept only numbers from the active locale and English/ASCII
- Accept numbers from all locales
The first will be easier to implement for me, as I am planning to use gettext mechanisms to implement the support.
I am volunteering to prepare the required patches and test cases.