diff options
author | Christian Clauss <cclauss@me.com> | 2021-10-07 16:36:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 07:36:39 -0700 |
commit | 78efc9aff254ec7e7a7b6512293674899e5d3615 (patch) | |
tree | 3bc539496c7adce2e0b2c92b7269d0937ef6e5ce /Python/fileutils.c | |
parent | 960e7b3ba13b26f45775551ab6f3c062b8666b74 (diff) | |
download | cpython-git-78efc9aff254ec7e7a7b6512293674899e5d3615.tar.gz |
[3.9] Fix typos in the Python directory (GH-28767) (GH-28798)
(cherry picked from commit db693df3e112c5a61f2cbef63eedce3a36520ded)
Automerge-Triggered-By: GH:JulienPalard
Diffstat (limited to 'Python/fileutils.c')
-rw-r--r-- | Python/fileutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c index d072363535..26e97df4ef 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -223,7 +223,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. |