Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Python/fileutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ decode_ascii_surrogateescape(const char *arg, size_t *size)
}
#endif

#if !defined(__APPLE__) && !defined(__ANDROID__)
static wchar_t*
decode_locale(const char* arg, size_t *size)
{
Expand Down Expand Up @@ -364,6 +365,7 @@ decode_locale(const char* arg, size_t *size)
}
return NULL;
}
#endif


/* Decode a byte string from the locale encoding with the
Expand Down Expand Up @@ -453,6 +455,7 @@ _Py_EncodeLocaleUTF8(const wchar_t *text, size_t *error_pos)
return cpath;
}

#if !defined(__APPLE__) && !defined(__ANDROID__)
static char*
encode_locale(const wchar_t *text, size_t *error_pos)
{
Expand Down Expand Up @@ -516,6 +519,7 @@ encode_locale(const wchar_t *text, size_t *error_pos)
}
return result;
}
#endif

/* Encode a wide character string to the locale encoding with the
surrogateescape error handler: surrogate characters in the range
Expand Down