diff options
author | Christian Clauss <cclauss@me.com> | 2021-10-07 15:30:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 15:30:08 (GMT) |
commit | ccd82a080056f21da2041d4c5d0ac4421ad0c8a8 (patch) | |
tree | f2eafb028e085e2d7d62cc51c5ac2ae7d513e21c /Python/fileutils.c | |
parent | 212140dceb72d40ba19e4aef089c707dbbcfd5cb (diff) | |
download | cpython-ccd82a080056f21da2041d4c5d0ac4421ad0c8a8.zip cpython-ccd82a080056f21da2041d4c5d0ac4421ad0c8a8.tar.gz cpython-ccd82a080056f21da2041d4c5d0ac4421ad0c8a8.tar.bz2 |
[3.10] Fix typos in the Python directory (GH-28767) (GH-28799)
(cherry picked from commit db693df3e112c5a61f2cbef63eedce3a36520ded)
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 9e732dd..c3144ee 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -220,7 +220,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. |