/external/python/cpython3/Python/ |
D | fileutils.c | 204 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/ |
D | fileutils.h | 29 int surrogateescape); 37 int surrogateescape); 49 int surrogateescape); 57 int surrogateescape);
|
/external/python/cpython3/Doc/c-api/ |
D | sys.rst | 103 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
|
D | unicode.rst | 765 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/ |
D | architecture.rst | 139 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/ |
D | tarfile.rst | 268 …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
|
D | email.generator.rst | 44 to the :meth:`flatten` method, or any surrogateescape encoded text provided 121 Encode *s* using the ``ASCII`` codec and the ``surrogateescape`` error
|
D | fileinput.rst | 204 "surrogateescape"))``
|
D | codecs.rst | 345 | ``'surrogateescape'`` | On decoding, replace byte with individual | 349 | | ``'surrogateescape'`` error handler is used | 365 The ``'surrogateescape'`` and ``'surrogatepass'`` error handlers.
|
D | os.rst | 75 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
|
D | functions.rst | 1071 * ``'surrogateescape'`` will represent any incorrect bytes as code 1074 the same bytes when the ``surrogateescape`` error handler is used
|
D | socket.rst | 51 ``'surrogateescape'`` error handler (see :pep:`383`). An address in
|
/external/python/cpython3/Doc/howto/ |
D | unicode.rst | 710 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/ |
D | unicodeobject.c | 3366 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/ |
D | 2.7b2.rst | 449 Remove reference to the missing "surrogateescape" encoding error handler
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.6.5rc1.rst | 409 the current locale encoding, rather than using ASCII/surrogateescape in some
|
D | 3.6.0a1.rst | 712 ``ignore``, ``replace`` and ``surrogateescape``. 731 ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``. Patch 751 Optimize ASCII and latin1 encoders with the ``surrogateescape`` error
|
D | 3.7.1rc1.rst | 95 Standard streams like sys.stdout now use the "surrogateescape" error
|
D | 3.5.0a1.rst | 4311 ``surrogateescape`` error handler, instead of the ``strict`` error handler.
|
/external/python/cpython3/Doc/using/ |
D | cmdline.rst | 820 implicit locale coercion) automatically enables the ``surrogateescape`` 864 UTF-8 as their text encoding, with the ``surrogateescape``
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.6.rst | 1797 ``surrogateescape``, ``ignore`` and ``replace`` (Contributed 1801 error handler ``surrogateescape`` 1805 ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass`` (Contributed 1809 ``ignore``, ``replace`` and ``surrogateescape`` (Contributed
|
D | 3.7.rst | 204 :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.
|
D | 3.5.rst | 98 ``surrogateescape`` error handler, instead of the ``strict`` error handler.
|
D | 3.2.rst | 2449 ``'mbcs'``) and the ``'surrogateescape'`` error handler on all operating
|
/external/python/cpython3/Misc/ |
D | HISTORY | 3005 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 …]
|