mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.9] Fix typos in the Python directory (GH-28767) (GH-28798)
(cherry picked from commit db693df3e1)
Automerge-Triggered-By: GH:JulienPalard
This commit is contained in:
parent
960e7b3ba1
commit
78efc9aff2
4 changed files with 4 additions and 4 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue