1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 11:45:07 +00:00
serenity/Ports/python3/patches/define-py-force-utf8-locale.patch
2021-10-04 21:46:25 +01:00

11 lines
539 B
Diff

--- Python-3.10.0/Include/pyport.h 2021-08-03 18:40:05.313000000 +0100
+++ Python-3.10.0/Include/pyport.h 2021-08-03 18:40:28.722351782 +0100
@@ -843,7 +843,7 @@
# error "Py_TRACE_REFS ABI is not compatible with release and debug ABI"
#endif
-#if defined(__ANDROID__) || defined(__VXWORKS__)
+#if defined(__ANDROID__) || defined(__VXWORKS__) || defined(__serenity__)
// Use UTF-8 as the locale encoding, ignore the LC_CTYPE locale.
// See _Py_GetLocaleEncoding(), PyUnicode_DecodeLocale()
// and PyUnicode_EncodeLocale().