Home
last modified time | relevance | path

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

/external/python/cpython3/Python/
Dfileutils.c204 int raw_malloc, int surrogateescape) in encode_ascii() argument
231 else if (surrogateescape && 0xdc80 <= ch && ch <= 0xdcff) { in encode_ascii()
273 const char **reason, int surrogateescape) in decode_ascii() argument
295 if (!surrogateescape) { in decode_ascii()
320 const char **reason, int surrogateescape) in decode_current_locale() argument
402 if (!surrogateescape) { in decode_current_locale()
415 if (!surrogateescape) { in decode_current_locale()
451 return decode_ascii(arg, wstr, wlen, reason, surrogateescape); in decode_current_locale()
479 int current_locale, int surrogateescape) in _Py_DecodeLocaleEx() argument
484 surrogateescape); in _Py_DecodeLocaleEx()
[all …]
/external/python/cpython3/Include/
Dfileutils.h29 int surrogateescape);
37 int surrogateescape);
49 int surrogateescape);
57 int surrogateescape);
/external/python/cpython3/Doc/c-api/
Dsys.rst103 Decode a byte string from the locale encoding with the :ref:`surrogateescape
104 error handler <surrogateescape>`: undecodable bytes are decoded as
106 surrogate character, escape the bytes using the surrogateescape error
147 :ref:`surrogateescape error handler <surrogateescape>`: surrogate characters
Dunicode.rst765 error handlers are ``"strict"`` and ``"surrogateescape"``
784 ``surrogateescape`` error handler, except on Android. Previously, :c:func:`Py_DecodeLocale`
785 was used for the ``surrogateescape``, and the current locale encoding was
801 supported error handlers are ``"strict"`` and ``"surrogateescape"``
820 ``surrogateescape`` error handler, except on Android. Previously,
822 was used for the ``surrogateescape``, and the current locale encoding was
/external/python/cpython3/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
/external/python/cpython3/Doc/library/
Dtarfile.rst268 …o, dereference=False, ignore_zeros=False, encoding=ENCODING, errors='surrogateescape', pax_headers…
322 Use ``'surrogateescape'`` as the default for the *errors* argument.
543 .. method:: TarInfo.tobuf(format=DEFAULT_FORMAT, encoding=ENCODING, errors='surrogateescape')
549 Use ``'surrogateescape'`` as the default for the *errors* argument.
871 The default scheme is ``'surrogateescape'`` which Python also uses for its
Demail.generator.rst44 to the :meth:`flatten` method, or any surrogateescape encoded text provided
121 Encode *s* using the ``ASCII`` codec and the ``surrogateescape`` error
Dfileinput.rst204 "surrogateescape"))``
Dcodecs.rst345 | ``'surrogateescape'`` | On decoding, replace byte with individual |
349 | | ``'surrogateescape'`` error handler is used |
365 The ``'surrogateescape'`` and ``'surrogatepass'`` error handlers.
Dos.rst75 case, Python uses the :ref:`surrogateescape encoding error handler
76 <surrogateescape>`, which means that undecodable bytes are replaced by a
118 ``'surrogateescape'`` error handler. Use :data:`environb` if you would like
166 encoding with ``'surrogateescape'`` error handler, or ``'strict'`` on
181 filesystem encoding with ``'surrogateescape'`` error handler, or ``'strict'``
226 and ``'surrogateescape'`` error handler. Use :func:`os.getenvb` if you
Dfunctions.rst1071 * ``'surrogateescape'`` will represent any incorrect bytes as code
1074 the same bytes when the ``surrogateescape`` error handler is used
Dsocket.rst51 ``'surrogateescape'`` error handler (see :pep:`383`). An address in
/external/python/cpython3/Doc/howto/
Dunicode.rst710 with the ``surrogateescape`` error handler::
712 with open(fname, 'r', encoding="ascii", errors="surrogateescape") as f:
718 encoding="ascii", errors="surrogateescape") as f:
721 The ``surrogateescape`` error handler will decode any non-ASCII bytes
724 same bytes when the ``surrogateescape`` error handler is used to
/external/python/cpython3/Objects/
Dunicodeobject.c3366 locale_error_handler(const char *errors, int *surrogateescape) in locale_error_handler() argument
3372 *surrogateescape = 0; in locale_error_handler()
3375 *surrogateescape = 1; in locale_error_handler()
3390 int surrogateescape; in unicode_encode_locale() local
3391 if (locale_error_handler(errors, &surrogateescape) < 0) in unicode_encode_locale()
3410 current_locale, surrogateescape); in unicode_encode_locale()
3610 int surrogateescape; in unicode_decode_locale() local
3611 if (locale_error_handler(errors, &surrogateescape) < 0) in unicode_decode_locale()
3623 current_locale, surrogateescape); in unicode_decode_locale()
4973 const char **reason, int surrogateescape) in _Py_DecodeUTF8Ex() argument
[all …]
/external/python/cpython2/Misc/NEWS.d/
D2.7b2.rst449 Remove reference to the missing "surrogateescape" encoding error handler
/external/python/cpython3/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.7.1rc1.rst95 Standard streams like sys.stdout now use the "surrogateescape" error
D3.5.0a1.rst4311 ``surrogateescape`` error handler, instead of the ``strict`` error handler.
/external/python/cpython3/Doc/using/
Dcmdline.rst820 implicit locale coercion) automatically enables the ``surrogateescape``
864 UTF-8 as their text encoding, with the ``surrogateescape``
/external/python/cpython3/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
239 :data:`sys.stdout` streams are set to ``surrogateescape``.
1728 now use the current locale encoding for ``surrogateescape`` error handler.
D3.5.rst98 ``surrogateescape`` error handler, instead of the ``strict`` error handler.
D3.2.rst2449 ``'mbcs'``) and the ``'surrogateescape'`` error handler on all operating
/external/python/cpython3/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 …]