Lines Matching defs:codec
470 codec registry is ready: before_PyUnicode_InitEncodings() is called. */
3608 /* Decode via the codec registry */
3653 /* Decode via the codec registry */
3677 /* Decode via the codec registry */
3717 /* Encode via the codec registry */
3803 /* Before _PyUnicode_InitEncodings() is called, the Python codec
3881 /* Encode via the codec registry */
3890 /* If the codec returns a buffer, raise a warning and convert to bytes */
3939 /* Encode via the codec registry */
4041 /* Before _PyUnicode_InitEncodings() is called, the Python codec
11667 Encode the string using the codec registered for encoding.
15904 PyObject *codec = _PyCodec_Lookup(encoding);
15907 if (!codec)
15910 name_obj = PyObject_GetAttrString(codec, "name");
15911 Py_CLEAR(codec);
15936 Py_XDECREF(codec);
15945 /* Update the stdio encoding to the normalized Python codec name. */
15948 return _PyStatus_ERR("failed to get the Python codec name "
15995 PyUnicode_DecodeFSDefault() can now use the Python codec rather than
16014 /* Update the filesystem encoding to the normalized Python codec name.
16016 (Python codec name). */
16020 return _PyStatus_ERR("failed to get the Python codec "
16025 return _PyStatus_ERR("cannot initialize filesystem codec");