Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 144da4e

Browse files
author
Stefan Krah
committed
Issue #22747: Workaround for systems without langinfo.h.
1 parent 267b639 commit 144da4e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Python/pylifecycle.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ get_locale_encoding(void)
223223
return NULL;
224224
}
225225
return get_codec_name(codeset);
226+
#elif defined(__ANDROID__)
227+
return get_codec_name("UTF-8");
226228
#else
227229
PyErr_SetNone(PyExc_NotImplementedError);
228230
return NULL;

0 commit comments

Comments
 (0)