summaryrefslogtreecommitdiff
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-10-07 16:36:39 +0200
committerGitHub <noreply@github.com>2021-10-07 07:36:39 -0700
commit78efc9aff254ec7e7a7b6512293674899e5d3615 (patch)
tree3bc539496c7adce2e0b2c92b7269d0937ef6e5ce /Python/fileutils.c
parent960e7b3ba13b26f45775551ab6f3c062b8666b74 (diff)
downloadcpython-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.c2
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.