We use a special number formatting routine to generate the XPath REC-compliant number representation; it relies on being able to get a decimal representation of the source number, which we use sprintf for as a fallback. This is fairly insensitive to current locale, except for an assertion that validates the decimal point as a precaution, and this check triggers when the locale decimal point is not a dot. Ideally we'd use a locale-insensitive routine here. On some systems we have ecvt_r (similarly to MSVC's ecvt_s), but it's deprecated so adopting it might be fraught with peril. For now let's simply adjust the assertion to account for locales with comma as a separator. This is probably not fully comprehensive but probably gets us from a 90% solution to a 99% solution... Fixes #574. |
||
|---|---|---|
| .. | ||
| pugiconfig.hpp | ||
| pugixml.cpp | ||
| pugixml.hpp | ||