Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locale.c: Better handle the case of no localeconv()
localeconv() is a C89 function, but we have long checked for its absence, and returned an empty hash if missing. Now the code has been changed so that it's trivial for us to instead return the hash filled in as if the C locale is in effect. This commit does that. There are two possible reasons for localeconv to be listed as missing. One is if the Configure probe we've long had for it didn't find it, and the other is that it is irreparably broken, so a hints file says don't use it. localeconv() historically has been buggy in various implementations, so I think its worthwhile to retain this little bit of code related to it's being broken. If it truly is absent from the platform, its struct definition isn't likely to be there either, so I added a definition for convenience, #ifdef'd out
- Loading branch information