[issue22330] PyOS_mystricmp is broken

2021-08-09 Thread Irit Katriel
Irit Katriel added the comment: This was fixed under Issue 41524. -- nosy: +iritkatriel resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> PyOS_mystricmp advances pointers too far ___ Python tracker

[issue22330] PyOS_mystricmp is broken

2014-10-14 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue22330] PyOS_mystricmp is broken

2014-09-03 Thread Stefan Krah
Stefan Krah added the comment: Unfortunately they seem to be part of the stable ABI (#18603). -- ___ Python tracker ___ ___ Python-bug

[issue22330] PyOS_mystricmp is broken

2014-09-03 Thread Masahiro Konishi
Masahiro Konishi added the comment: You can find PyOS_stricmp from here: https://docs.python.org/3/c-api/conversion.html And PyOS_stricmp is PyOS_mystricmp when MS_WINDOWS is not defined. Include/pystrcmp.h: #ifdef MS_WINDOWS #define PyOS_strnicmp strnicmp #define PyOS_stricmp stricmp #else #

[issue22330] PyOS_mystricmp is broken

2014-09-03 Thread Stefan Krah
Stefan Krah added the comment: Also, they aren't safe with the Turkish "i". -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-lis

[issue22330] PyOS_mystricmp is broken

2014-09-03 Thread STINNER Victor
STINNER Victor added the comment: I didn't know PyOS_mystrnicmp() and PyOS_mystricmp() functions! They are not used in Python source code. They are not documented, but they are exported in pystrcmp.h which is included in the main Python.h header. -- nosy: +haypo __

[issue22330] PyOS_mystricmp is broken

2014-09-03 Thread Masahiro Konishi
New submission from Masahiro Konishi: int x = PyOS_mystricmp("foo", "none"); expected: x < 0 actual: x == 0 while (*s1 && (tolower((unsigned)*s1++) == tolower((unsigned)*s2++))) { ; } return (tolower((unsigned)*s1) - tolower((unsigned)*s2)); The while-loop is finished when