cantele wrote:
I think Horde should set the locale.
Is this a good idea? We would be forcing everybody to use the same locale.
Quote:
Is the convention to write your Horde XML files in your own locale?
Generally one writes all files in one's own locale.
Quote:
I think this is against the spirit of sharing. Actually, I think it's pretty awkward that atof should fail like that anyway...
If everything works as it should, then whatever locale you have defined for your operating system should be used by default for the program. Unfortunately, there is no way to detect if a number is in another locale (unless we explicitly embed that information in the XML).
We could
setlocale("C"); at the beginning of Horde, which would read and write all files in the global C locale, but unfortunately this may conflict with the user's choice of locale, or with other libraries.