From 1173ef534c1ed948f66c3e3c1a34ba31482c0af3 Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Wed, 25 Sep 2024 01:26:12 +0300 Subject: [PATCH] Update check_force_ascii function for NetBSD to return 1 --- Python/fileutils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Python/fileutils.c b/Python/fileutils.c index c9ae1b3f54e167..8523933d77153b 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -213,6 +213,9 @@ check_force_ascii(void) if (loc == NULL) { goto error; } +#if defined(__NetBSD__) + return 1; +#endif if (strcmp(loc, "C") != 0 && strcmp(loc, "POSIX") != 0) { /* the LC_CTYPE locale is different than C and POSIX */ return 0;