strerror is locale-dependent but PySys_FormatStderr is not. The usage is
|
// TODO(picnixz): strerror() is locale dependent but not PySys_FormatStderr(). |
|
PySys_FormatStderr("%S: can't open file %R: [Errno %d] %s\n", |
|
program_name, filename, errno, strerror(errno)); |
and we should update it to be locale-dependent. This is a follow-up to
#126746 (comment).
This would be quite hard to test as pointed out by Serhiy, so I won't work on this for now. Others may pick that task.
strerroris locale-dependent butPySys_FormatStderris not. The usage iscpython/Modules/main.c
Lines 377 to 379 in 7303f06
This would be quite hard to test as pointed out by Serhiy, so I won't work on this for now. Others may pick that task.