sheredom / utf8.h

📚 single header utf8 string functions for C and C++
The Unlicense
1.69k stars 123 forks source link

Fix utf8ncasecmp bug, not allowing for negative return. Add test case. #119

Closed lrpereira closed 7 months ago

lrpereira commented 7 months ago

Hi @sheredom ,

utf8ncasecmp("Camón Romasan", "camu", 4) returns 0, which I believe is incorrect.

The proposed patch fixes this. I also added a test case for it.

sheredom commented 7 months ago

Good find!