diff --git a/ChangeLog.rst b/ChangeLog.rst index 11b777de..fde9c4ad 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -73,6 +73,50 @@ prints "1.1". Use the ``#`` specifier to keep trailing zeros. +* The ``'L'`` specifier for locale-specific numeric formatting can now be + combined with presentation specifiers as in ``std::format``. For example: + + .. code:: c++ + + #include + #include + + int main() { + std::locale::global(std::locale("fr_FR.UTF-8")); + fmt::print("{0:.2Lf}", 0.42); + } + + prints "0,42". + +* Added support for the ``'s'`` format specifier that gives textual + representation of ``bool`` + (`#2109 `_). For example: + + .. code:: c++ + + #include + + int main() { + fmt::print("{:s}", true); + } + + prints "true". + Thanks `@powercoderlol (Ivan Polyakov) `_. + +* Fixed handling of empty format strings during format string compilation + (`#2042 `_): + + .. code:: c++ + + auto s = fmt::format(FMT_COMPILE("")); + + Thanks `@alexezeder (Alexey Ochapov) `_. + +* Fixed handling of enums in ``fmt::to_string`` + (`#2036 `_). + +* Fixed width computation. + * The experimental fast output stream (``fmt::ostream``) is now truncated by default for consistency with ``fopen``. For example: @@ -91,17 +135,15 @@ writes "Ford" to the file "guide". To preserve the old file content if any pass ``fmt::file::WRONLY | fmt::file::CREATE`` flags to ``fmt::output_file``. -* Fixed handling of enums in ``fmt::to_string`` - (`#2036 `_) +* Fixed writing to ``stdout`` when it is redirected to ``NUL`` on Windows + (`#2080 `_). -* Fixed handling of empty format strings during format string compilation - (`#2042 `_): +* Added ``fmt/args.h`` to the install target. - .. code:: c++ - - auto s = fmt::format(FMT_COMPILE("")); - - Thanks `@alexezeder (Alexey Ochapov) `_. +* Added the ``FMT_MASTER_PROJECT`` CMake option to control build and install + targets when {fmt} is included via ``add_subdirectory`` + (`#2100 `_). + Thanks `@randomizedthinking `_. * Fixed various warnings and compilation issues (`#2038 `_, @@ -112,17 +154,26 @@ `#2065 `_, `#2067 `_, `#2068 `_, - `#2073 `_). + `#2073 `_, + `#2106 `_, + `#2107 `_). Thanks `@yeswalrus (Walter Gray) `_, `@Finkman `_, `@HazardyKnusperkeks (Björn Schäpers) `_, `@dkavolis (Daumantas Kavolis) `_ - `@concatime (Issam Maghni) `_. + `@concatime (Issam Maghni) `_, + `@chronoxor (Ivan Shynkarenka) `_. * Improved documentation (`#2051 `_, - `#2057 `_). - Thanks `@imba-tjd (谭九鼎) `_. + `#2057 `_, + `#2081 `_). + Thanks `@imba-tjd (谭九鼎) `_, + `@0x416c69 (AlιAѕѕaѕѕιN) `_. + +* Improved continuous integration + (`#2110 `_). + Thanks `@alexezeder (Alexey Ochapov) `_. 7.1.3 - 2020-11-24 ------------------