On Wed, Jan 21, 2009 at 12:39:50 +0100, Bruno Haible wrote: > Yes. While the strtod specification explains the locale dependency of the > decimal point, it does not do so for the digits; hence it's safe to assume > that the digits understood by strtod are only '0'..'9'.
Actually, C99 states 'In other than the "C" locale, additional locale- specific subject sequence forms may be accepted'. This is pretty vague so it could refer to other types of digits (though it doesn't matter whether it's talking about digits or grouping characters, etc., since filtering unknown characters would handle both cases). > > Do you want me to submit a patch that does this preprocessing? I guess > > decimal_point_char would need to go into a new module if localeconv > > isn't safe to use > > Yes, this would be welcome: it would allow c_strtod to be multithread-safe. > > Do you already have copyright assignments with the FSF in place, for your > gnulib contributions? If not, then now is the right time to start the > process (request the forms from the FSF, sign them and snail mail them back). I just sent the request form to ass...@gnu.org. -- Michael
signature.asc
Description: Digital signature