File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,7 @@ decode_ascii_surrogateescape(const char *arg, size_t *size)
249249}
250250#endif
251251
252+ #if !defined(__APPLE__ ) && !defined(__ANDROID__ )
252253static wchar_t *
253254decode_locale (const char * arg , size_t * size )
254255{
@@ -364,6 +365,7 @@ decode_locale(const char* arg, size_t *size)
364365 }
365366 return NULL ;
366367}
368+ #endif
367369
368370
369371/* Decode a byte string from the locale encoding with the
@@ -453,6 +455,7 @@ _Py_EncodeLocaleUTF8(const wchar_t *text, size_t *error_pos)
453455 return cpath ;
454456}
455457
458+ #if !defined(__APPLE__ ) && !defined(__ANDROID__ )
456459static char *
457460encode_locale (const wchar_t * text , size_t * error_pos )
458461{
@@ -516,6 +519,7 @@ encode_locale(const wchar_t *text, size_t *error_pos)
516519 }
517520 return result ;
518521}
522+ #endif
519523
520524/* Encode a wide character string to the locale encoding with the
521525 surrogateescape error handler: surrogate characters in the range
You can’t perform that action at this time.
0 commit comments