pugixml/src
Arseny Kapoulkine 980cf57ff4 XPath: Account for non-English locales during number->string conversion
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.
2023-07-27 09:24:10 -07:00
..
pugiconfig.hpp Update version number in preparation for 1.13 2022-10-20 20:08:52 -07:00
pugixml.cpp XPath: Account for non-English locales during number->string conversion 2023-07-27 09:24:10 -07:00
pugixml.hpp Fix weak vtable warning regarding xml_writer 2023-04-21 17:23:38 -04:00