From a733c2a4fe5d0544caa0716963a018e11dd6b73c Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Thu, 4 Aug 2022 22:22:25 +0200 Subject: [PATCH] P2419R2 Clarify handling of encodings in localized formatting of chrono types --- source/support.tex | 2 +- source/time.tex | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/source/support.tex b/source/support.tex index 40ceef1aae..1817fe41b6 100644 --- a/source/support.tex +++ b/source/support.tex @@ -617,7 +617,7 @@ #define @\defnlibxname{cpp_lib_execution}@ 201902L // also in \libheader{execution} #define @\defnlibxname{cpp_lib_expected}@ 202202L // also in \libheader{expected} #define @\defnlibxname{cpp_lib_filesystem}@ 201703L // also in \libheader{filesystem} -#define @\defnlibxname{cpp_lib_format}@ 202110L // also in \libheader{format} +#define @\defnlibxname{cpp_lib_format}@ 202207L // also in \libheader{format} #define @\defnlibxname{cpp_lib_gcd_lcm}@ 201606L // also in \libheader{numeric} #define @\defnlibxname{cpp_lib_generic_associative_lookup}@ 201304L // also in \libheader{map}, \libheader{set} #define @\defnlibxname{cpp_lib_generic_unordered_lookup}@ 201811L diff --git a/source/time.tex b/source/time.tex index 667d1fc334..a59096095d 100644 --- a/source/time.tex +++ b/source/time.tex @@ -10509,6 +10509,11 @@ the formats specified in ISO 8601:2004 shall be used where so described. Some of the conversion specifiers depend on the formatting locale. +If the string literal encoding is a Unicode encoding form and +the locale is among +an \impldef{locales with Unicode support for chrono types} set of locales, +each replacement that depends on the locale is performed as if +the replacement character sequence is converted to the string literal encoding. If the formatted object does not contain the information the conversion specifier refers to, an exception of type \tcode{format_error} is thrown.