@@ -1479,6 +1479,9 @@ msgid ""
1479
1479
":mod:`~encodings.mbcs` codec now supports all error handlers, instead of "
1480
1480
"only ``replace`` to encode and ``ignore`` to decode."
1481
1481
msgstr ""
1482
+ ":mod:`~encodings.mbcs` 编解码器被重写以能够在所有 Windows 版本上正确处理 ``replace`` 和 "
1483
+ "``ignore`` 错误处理器。 :mod:`~encodings.mbcs` 编解码器现在支持所有错误处理器,而不是只能将 ``replace`` "
1484
+ "用于编码并将 ``ignore`` 用于解码。"
1482
1485
1483
1486
#: ../../whatsnew/3.3.rst:990
1484
1487
msgid ""
@@ -1487,6 +1490,9 @@ msgid ""
1487
1490
"is used by ``sys.stdout`` if the console output code page is set to cp65001 "
1488
1491
"(e.g., using ``chcp 65001`` command)."
1489
1492
msgstr ""
1493
+ "新增了一个 Windows 专属的编解码器: ``cp65001`` (:issue:`13216`)。 即 Windows 代码页 65001 "
1494
+ "(Windows UTF-8, ``CP_UTF8``)。 举例来说,如果控制台输出代码页被设为 cp65001(例如使用 ``chcp 65001``"
1495
+ " 命令)则 ``sys.stdout`` 就会使用它。"
1490
1496
1491
1497
#: ../../whatsnew/3.3.rst:995
1492
1498
msgid ""
@@ -1495,6 +1501,8 @@ msgid ""
1495
1501
"``b'\\ xff\\ n'.decode('gb2312', 'replace')`` now returns a ``\\ n`` after the "
1496
1502
"replacement character."
1497
1503
msgstr ""
1504
+ "多字节 CJK 解码器现在能更快地进行再同步。 它们将只忽略非法字节序列的第一个字节。 例如,现在 "
1505
+ "``b'\\ xff\\ n'.decode('gb2312', 'replace')`` 将在替换字符后返回一个 ``\\ n``。"
1498
1506
1499
1507
#: ../../whatsnew/3.3.rst:999
1500
1508
msgid "(:issue:`12016`)"
@@ -1504,7 +1512,7 @@ msgstr "(:issue:`12016`)"
1504
1512
msgid ""
1505
1513
"Incremental CJK codec encoders are no longer reset at each call to their "
1506
1514
"encode() methods. For example::"
1507
- msgstr ""
1515
+ msgstr "增量式 CJK 编解码器的编码器在每次调用其 encode() 方法时将不再重置。 例如:: "
1508
1516
1509
1517
#: ../../whatsnew/3.3.rst:1009
1510
1518
msgid ""
@@ -1530,6 +1538,8 @@ msgid ""
1530
1538
"number of mappings as a single unit. (Written by Raymond Hettinger for "
1531
1539
":issue:`11089`, made public in :issue:`11297`.)"
1532
1540
msgstr ""
1541
+ "新增了一个 :class:`~collections.ChainMap` 类以允许将多个映射当作一个单元来处理。 (由 Raymond "
1542
+ "Hettinger 针对 :issue:`11089` 编写,在 :issue:`11297` 中对外公开。)"
1533
1543
1534
1544
#: ../../whatsnew/3.3.rst:1024
1535
1545
msgid ""
0 commit comments