aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Zverovich <viz@meta.com>2023-12-29 13:00:12 -0800
committerVictor Zverovich <viz@meta.com>2023-12-29 13:00:12 -0800
commita13d1b12e5af8d8dfe276c21b67135cc86cd969d (patch)
tree3eb089d6b89fed20d9a9fcc1d70f1c676decc5fc
parent47a0eec2e8a80a004e66aa571506d5ae364304b7 (diff)
downloadfmtlib-a13d1b12e5af8d8dfe276c21b67135cc86cd969d.tar.gz
Update changelog and docs
-rw-r--r--ChangeLog.md36
-rw-r--r--doc/syntax.rst7
2 files changed, 34 insertions, 9 deletions
diff --git a/ChangeLog.md b/ChangeLog.md
index 309e4f28..04a01a50 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -29,7 +29,8 @@
For example ([godbolt](https://godbolt.org/z/YajfKjhhr)):
```c++
- #include <fmt/chrono.h>
+ #include <source_location>
+ #include <fmt/std.h>
int main() {
fmt::print("{}\n", std::source_location::current());
@@ -79,6 +80,12 @@
- Made `format_as` work with references
(https://github.com/fmtlib/fmt/pull/3739). Thanks @tchaikov.
+- Fixed formatting of invalid UTF-8 with precision
+ (https://github.com/fmtlib/fmt/issues/3284).
+
+- Fixed an inconsistency between `fmt::to_string` and `fmt::format`
+ (https://github.com/fmtlib/fmt/issues/3684).
+
- Disallowed unsafe uses of `fmt::styled`
(https://github.com/fmtlib/fmt/issues/3625):
@@ -89,11 +96,20 @@
Pass `fmt::styled(...)` as a parameter instead.
+- Added a null check when formatting C strings with the `s` specifier
+ (https://github.com/fmtlib/fmt/issues/3706).
+
- Disallowed the `c` specifier for `bool`
- (https://github.com/fmtlib/fmt/pull/3734). Thanks @js324.
+ (https://github.com/fmtlib/fmt/issues/3726,
+ https://github.com/fmtlib/fmt/pull/3734). Thanks @js324.
+
+- Made the default formatting unlocalized in `fmt::ostream_formatter` for
+ consistency with the rest of the library
+ (https://github.com/fmtlib/fmt/issues/3460).
- Fixed localized formatting in bases other than decimal
- (https://github.com/fmtlib/fmt/pull/3750). Thanks @js324.
+ (https://github.com/fmtlib/fmt/issues/3693,
+ https://github.com/fmtlib/fmt/pull/3750). Thanks @js324.
- Fixed a performance regression in experimental `fmt::ostream::print`
(https://github.com/fmtlib/fmt/issues/3674).
@@ -124,7 +140,7 @@
https://github.com/fmtlib/fmt/pull/3702,
https://github.com/fmtlib/fmt/pull/3749). Thanks @pklima and @tchaikov.
-- Fixed various warnings and compilation issues
+- Fixed various warnings, compilation and test issues
(https://github.com/fmtlib/fmt/issues/3607,
https://github.com/fmtlib/fmt/pull/3610,
https://github.com/fmtlib/fmt/pull/3624,
@@ -137,11 +153,16 @@
https://github.com/fmtlib/fmt/pull/3652,
https://github.com/fmtlib/fmt/issues/3654,
https://github.com/fmtlib/fmt/pull/3663,
+ https://github.com/fmtlib/fmt/issues/3670,
https://github.com/fmtlib/fmt/pull/3680,
+ https://github.com/fmtlib/fmt/issues/3694,
https://github.com/fmtlib/fmt/pull/3695,
- https://github.com/fmtlib/fmt/pull/369,
+ https://github.com/fmtlib/fmt/pull/3699,
+ https://github.com/fmtlib/fmt/issues/3705,
+ https://github.com/fmtlib/fmt/issues/3710,
https://github.com/fmtlib/fmt/issues/3712,
https://github.com/fmtlib/fmt/pull/3713,
+ https://github.com/fmtlib/fmt/issues/3714,
https://github.com/fmtlib/fmt/pull/3716,
https://github.com/fmtlib/fmt/pull/3723,
https://github.com/fmtlib/fmt/issues/3738,
@@ -156,7 +177,9 @@
https://github.com/fmtlib/fmt/pull/3755,
https://github.com/fmtlib/fmt/issues/3760,
https://github.com/fmtlib/fmt/pull/3762,
- https://github.com/fmtlib/fmt/pull/3764).
+ https://github.com/fmtlib/fmt/issues/3763,
+ https://github.com/fmtlib/fmt/pull/3764,
+ https://github.com/fmtlib/fmt/issues/3774).
Thanks @danakj, @vinayyadav3016, @cyyever, @phprus, @qimiko, @saschasc,
@gsjaardema, @lazka, @Zhaojun-Liu, @carlsmedstad, @hotwatermorning,
@cptFracassa, @kuguma, @PeterJohnson, @H1X4Dev, @asantoni, @eltociear,
@@ -172,6 +195,7 @@
https://github.com/fmtlib/fmt/issues/3673,
https://github.com/fmtlib/fmt/pull/3677,
https://github.com/fmtlib/fmt/pull/3737,
+ https://github.com/fmtlib/fmt/issues/3742,
https://github.com/fmtlib/fmt/pull/3744).
Thanks @idzm, @perlun, @joycebrum, @fennewald, @reinhardt1053, @GeorgeLS.
diff --git a/doc/syntax.rst b/doc/syntax.rst
index 53385d87..3c21902c 100644
--- a/doc/syntax.rst
+++ b/doc/syntax.rst
@@ -229,9 +229,10 @@ The available integer presentation types are:
| none | The same as ``'d'``. |
+---------+----------------------------------------------------------+
-Integer presentation types can also be used with character and Boolean values.
-Boolean values are formatted using textual representation, either ``true`` or
-``false``, if the presentation type is not specified.
+Integer presentation types can also be used with character and Boolean values
+with the only exception that ``'c'`` cannot be used with `bool`. Boolean values
+are formatted using textual representation, either ``true`` or ``false``, if the
+presentation type is not specified.
The available presentation types for floating-point values are: