зеркало из https://github.com/mozilla/gecko-dev.git
88b97ce29a
This makes mozilla::PrintfTarget consistent across all locales (not printing e.g. "," instead of "." for the decimal point in floats in some locales) This implementation passes all the glibc tests in stdio-common/tfformat.c except two tests because of the difference in how values like e.g 0.25 are rounded. Printf in glibc and on MacOS, as well as Rust std::fmt, round to nearest, ties to even. Double-conversion, as well as printf on Windows and conversion functions in ECMAScript round to nearest, ties away from zero. The standard for printf says rounding is implementation-defined so either way is technically correct. Differential Revision: https://phabricator.services.mozilla.com/D102699 |
||
---|---|---|
.. | ||
COPYING | ||
COPYING.LIB | ||
README.MOZILLA | ||
tfformat.c | ||
tiformat.c | ||
tllformat.c |
README.MOZILLA
The files in this directory were copied from the stdio-common subdirectory in glibc (https://sourceware.org/git/glibc.git).