summaryrefslogtreecommitdiff
path: root/Ports/python3/patches/define-py-force-utf8-locale.patch
blob: 107b68f75f0d2879f6e316d2542164ac584e3451 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Python-3.9.4/Include/pyport.h	2021-02-21 20:22:43.946024250 +0100
+++ Python-3.9.4/Include/pyport.h	2021-02-21 20:29:32.457743589 +0100
@@ -838,7 +838,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__)
    /* Ignore the locale encoding: force UTF-8 */
 #  define _Py_FORCE_UTF8_LOCALE
 #endif