mirror of
https://github.com/python/cpython.git
synced 2024-11-30 18:51:15 +01:00
ad3eac1963
Fix time.strftime(), the strftime() method and formatting of the datetime classes datetime, date and time. * Characters not encodable in the current locale are now acceptable in the format string. * Surrogate pairs and sequence of surrogatescape-encoded bytes are no longer recombinated. * Embedded null character no longer terminates the format string. This fixes also gh-78662 and gh-124531.
9 lines
479 B
ReStructuredText
9 lines
479 B
ReStructuredText
Fix encoding issues in :func:`time.strftime`, the
|
|
:meth:`~datetime.datetime.strftime` method of the :mod:`datetime` classes
|
|
:class:`~datetime.datetime`, :class:`~datetime.date` and
|
|
:class:`~datetime.time` and formatting of these classes. Characters not
|
|
encodable in the current locale are now acceptable in the format string.
|
|
Surrogate pairs and sequence of surrogatescape-encoded bytes are no longer
|
|
recombinated. Embedded null character no longer terminates the format
|
|
string.
|