Commit d2b0231
authored
1 parent 6693d7a commit d2b0231
File tree
1 file changed
+4
-0
lines changed- Python
1 file changed
+4-0lines changed+4Original file line number Diff line number Diff line change @@ -249,6 +249,7 @@ decode_ascii_surrogateescape(const char *arg, size_t *size)249
249
}250
250
#endif251
251
252
+
#if !defined(__APPLE__) && !defined(__ANDROID__)252
253
static wchar_t*253
254
decode_locale(const char* arg, size_t *size)254
255
{@@ -364,6 +365,7 @@ decode_locale(const char* arg, size_t *size)364
365
}365
366
return NULL;366
367
}368
+
#endif367
369
368
370
369
371
/* Decode a byte string from the locale encoding with the@@ -453,6 +455,7 @@ _Py_EncodeLocaleUTF8(const wchar_t *text, size_t *error_pos)453
455
return cpath;454
456
}455
457
458
+
#if !defined(__APPLE__) && !defined(__ANDROID__)456
459
static char*457
460
encode_locale(const wchar_t *text, size_t *error_pos)458
461
{@@ -516,6 +519,7 @@ encode_locale(const wchar_t *text, size_t *error_pos)516
519
}517
520
return result;518
521
}522
+
#endif519
523
520
524
/* Encode a wide character string to the locale encoding with the521
525
surrogateescape error handler: surrogate characters in the range
0 commit comments