Skip to content

Commit a8e30d3

Browse files
committed
LWG3094 [time.duration.io]p4 makes surprising claims about encoding
1 parent a0b07b5 commit a8e30d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/utilities.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19514,9 +19514,10 @@
1951419514
which are converted to arrays of \tcode{charT} using a decimal conversion with no leading zeroes.
1951519515

1951619516
\pnum
19517-
For streams where \tcode{charT} has an 8-bit representation,
19518-
\tcode{"\textmu{}s"} should be encoded as UTF-8. Otherwise UTF-16 or UTF-32 is encouraged.
19519-
The implementation may substitute other encodings, including \tcode{"us"}.
19517+
If \tcode{Period::type} is \tcode{micro},
19518+
but the character U+00B5 cannot be represented in
19519+
the encoding used for \tcode{charT},
19520+
the unit suffix \tcode{"us"} is used instead of \tcode{"\textmu{}s"}.
1952019521

1952119522
\pnum
1952219523
\returns \tcode{os}.

0 commit comments

Comments
 (0)