summaryrefslogtreecommitdiff
path: root/Ports/python3/patches/define-py-force-utf8-locale.patch
blob: d8e6ea1b4b4a56792e702be6ef7edb9953c47251 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Python-3.9.1/Include/pyport.h	2021-01-17 20:45:44.417000000 +0100
+++ Python-3.9.1/Include/pyport.h	2021-01-17 20:46:07.865663659 +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