From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Linus Groh <mail@linusgroh.de>
Date: Mon, 2 Oct 2023 18:49:19 +0100
Subject: [PATCH] Enforce UTF-8 as the locale encoding
By defining `_Py_FORCE_UTF8_LOCALE` as some other platforms already do,
we can enforce UTF-8 as the encoding.
---
Include/pyport.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Include/pyport.h b/Include/pyport.h
index 2ba81a4be42822655aaae94d675eae59a80d150f..d2d7d5486c2c48ab94152c2601e9cae3f2a634da 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -499,7 +499,7 @@ extern "C" {
# endif
#endif
-#if defined(__ANDROID__) || defined(__VXWORKS__)
+#if defined(__ANDROID__) || defined(__VXWORKS__) || defined(__minerva__)
// Use UTF-8 as the locale encoding, ignore the LC_CTYPE locale.
// See _Py_GetLocaleEncoding(), PyUnicode_DecodeLocale()
// and PyUnicode_EncodeLocale().