Home
last modified time | relevance | path

Searched refs:surrogateescape (Results 1 – 25 of 25) sorted by relevance

/third_party/python/Python/
Dfileutils.c50 get_surrogateescape(_Py_error_handler errors, int *surrogateescape) in get_surrogateescape() argument
55 *surrogateescape = 0; in get_surrogateescape()
58 *surrogateescape = 1; in get_surrogateescape()
317 int surrogateescape; in encode_ascii() local
318 if (get_surrogateescape(errors, &surrogateescape) < 0) { in encode_ascii()
343 else if (surrogateescape && 0xdc80 <= ch && ch <= 0xdcff) { in encode_ascii()
392 int surrogateescape; in decode_ascii() local
393 if (get_surrogateescape(errors, &surrogateescape) < 0) { in decode_ascii()
412 if (!surrogateescape) { in decode_ascii()
448 int surrogateescape; in decode_current_locale() local
[all …]
/third_party/python/Doc/c-api/
Dsys.rst131 If the error handler is :ref:`surrogateescape error handler
132 <surrogateescape>`, undecodable bytes are decoded as characters in range
134 character, the bytes are escaped using the surrogateescape error handler
174 handler`. If the error handler is :ref:`surrogateescape error handler
175 <surrogateescape>`, surrogate characters in the range U+DC80..U+DCFF are
Dunicode.rst780 error handlers are ``"strict"`` and ``"surrogateescape"``
799 ``surrogateescape`` error handler, except on Android. Previously, :c:func:`Py_DecodeLocale`
800 was used for the ``surrogateescape``, and the current locale encoding was
816 supported error handlers are ``"strict"`` and ``"surrogateescape"``
835 ``surrogateescape`` error handler, except on Android. Previously,
837 was used for the ``surrogateescape``, and the current locale encoding was
Dinit_config.rst713 On other platforms: use ``"surrogateescape"`` by default.
718 * ``"surrogateescape"``
1080 * On Windows: use ``"surrogateescape"``.
1081 * ``"surrogateescape"`` if :c:member:`PyPreConfig.utf8_mode` is non-zero,
/third_party/python/Lib/email/
Darchitecture.rst139 data is handled by using the `surrogateescape` error handler of the ASCII
147 do the `surrogateescape` encoding of binary input data, and pass that data to
/third_party/python/Doc/library/
Dtarfile.rst279 …o, dereference=False, ignore_zeros=False, encoding=ENCODING, errors='surrogateescape', pax_headers…
334 Use ``'surrogateescape'`` as the default for the *errors* argument.
556 .. method:: TarInfo.tobuf(format=DEFAULT_FORMAT, encoding=ENCODING, errors='surrogateescape')
562 Use ``'surrogateescape'`` as the default for the *errors* argument.
887 The default scheme is ``'surrogateescape'`` which Python also uses for its
Demail.generator.rst48 to the :meth:`flatten` method, or any surrogateescape encoded text provided
125 Encode *s* using the ``ASCII`` codec and the ``surrogateescape`` error
Dfileinput.rst224 "surrogateescape"))``
Dcodecs.rst352 | ``'surrogateescape'`` | On decoding, replace byte with individual |
356 | | ``'surrogateescape'`` error handler is used |
372 The ``'surrogateescape'`` and ``'surrogatepass'`` error handlers.
Dos.rst81 case, Python uses the :ref:`surrogateescape encoding error handler
82 <surrogateescape>`, which means that undecodable bytes are replaced by a
112 UTF-8 as their text encoding, with the ``surrogateescape``
188 ``'surrogateescape'`` error handler. Use :data:`environb` if you would like
298 and ``'surrogateescape'`` error handler. Use :func:`os.getenvb` if you
Dfunctions.rst1216 * ``'surrogateescape'`` will represent any incorrect bytes as low
1219 the same bytes when the ``surrogateescape`` error handler is used
Dsys.rst79 them with filesystem encoding and "surrogateescape" error handler.
Dsocket.rst51 ``'surrogateescape'`` error handler (see :pep:`383`). An address in
/third_party/python/Doc/howto/
Dunicode.rst716 with the ``surrogateescape`` error handler::
718 with open(fname, 'r', encoding="ascii", errors="surrogateescape") as f:
724 encoding="ascii", errors="surrogateescape") as f:
727 The ``surrogateescape`` error handler will decode any non-ASCII bytes
730 same bytes when the ``surrogateescape`` error handler is used to
/third_party/python/Misc/NEWS.d/
D3.6.5rc1.rst409 the current locale encoding, rather than using ASCII/surrogateescape in some
D3.6.0a1.rst712 ``ignore``, ``replace`` and ``surrogateescape``.
731 ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``. Patch
751 Optimize ASCII and latin1 encoders with the ``surrogateescape`` error
D3.5.0a1.rst4311 ``surrogateescape`` error handler, instead of the ``strict`` error handler.
D3.8.0a1.rst758 Standard streams like sys.stdout now use the "surrogateescape" error
/third_party/python/Doc/whatsnew/
D3.6.rst1797 ``surrogateescape``, ``ignore`` and ``replace`` (Contributed
1801 error handler ``surrogateescape``
1805 ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass`` (Contributed
1809 ``ignore``, ``replace`` and ``surrogateescape`` (Contributed
D3.7.rst204 :data:`~sys.stdout` is now ``surrogateescape`` (rather than ``strict``) when
240 :data:`sys.stdout` streams are set to ``surrogateescape``.
1736 now use the current locale encoding for ``surrogateescape`` error handler.
D3.5.rst98 ``surrogateescape`` error handler, instead of the ``strict`` error handler.
D3.2.rst2451 ``'mbcs'``) and the ``'surrogateescape'`` error handler on all operating
/third_party/python/Objects/
Dunicodeobject.c5358 int surrogateescape = 0; in _Py_DecodeUTF8Ex() local
5365 surrogateescape = 1; in _Py_DecodeUTF8Ex()
5410 if (surrogateescape) { in _Py_DecodeUTF8Ex()
5497 int surrogateescape = 0; in _Py_EncodeUTF8Ex() local
5504 surrogateescape = 1; in _Py_EncodeUTF8Ex()
5555 if (!surrogateescape || !(0xDC80 <= ch && ch <= 0xDCFF)) { in _Py_EncodeUTF8Ex()
/third_party/python/Doc/using/
Dcmdline.rst900 implicit locale coercion) automatically enables the ``surrogateescape``
/third_party/python/Misc/
DHISTORY3005 encoding with the surrogateescape error handler, instead of decoding from the
4585 ASCII/surrogateescape codec is now used (instead of the locale encoding) to
4612 encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding
4615 already using UTF-8/surrogateescape.
8941 encoding and the surrogateescape error handler, rather than UTF-8. Patch
11527 filenames encoded to the filesystem encoding with the surrogateescape error
11601 - Issue #6011: sysconfig and distutils.sysconfig use the surrogateescape error
12095 encode the value with filesystem encoding and surrogateescape (instead of
12481 - Create os.fsdecode(): decode from the filesystem encoding with surrogateescape
12510 encoding and surrogateescape error handler. Patch written by David Watson.
[all …]