From db693df3e112c5a61f2cbef63eedce3a36520ded Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 7 Oct 2021 00:55:27 +0200 Subject: Fix typos in the Python directory (GH-28767) --- Python/fileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/fileutils.c') diff --git a/Python/fileutils.c b/Python/fileutils.c index ecfdc5758e..a36415946e 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -221,7 +221,7 @@ check_force_ascii(void) ch = (unsigned char)0xA7; res = _Py_mbstowcs(&wch, (char*)&ch, 1); if (res != DECODE_ERROR && wch == L'\xA7') { - /* On HP-UX withe C locale or the POSIX locale, + /* On HP-UX with C locale or the POSIX locale, nl_langinfo(CODESET) announces "roman8", whereas mbstowcs() uses Latin1 encoding in practice. Force ASCII in this case. -- cgit v1.2.1