CompareNoCase incorrectly returns that string1 is greater than string2 for some special characters, sample:
char foo[] = {"abc"};
char bar[] = {"abc"};
foo[0] = (char)(unsigned char)127;
bar[0] = (char)(unsigned char)128;
std::cout << PT::CompareNoCase((const char*)foo, (const char*)bar) << std::endl;
printed value is 255 but should be -1
CompareNoCase incorrectly returns that string1 is greater than string2 for some special characters, sample:
```
char foo[] = {"abc"};
char bar[] = {"abc"};
foo[0] = (char)(unsigned char)127;
bar[0] = (char)(unsigned char)128;
std::cout << PT::CompareNoCase((const char*)foo, (const char*)bar) << std::endl;
printed value is 255 but should be -1
```
tomasz.sowa
added the bug label 2021-05-08 19:49:00 +02:00
tomasz.sowa
self-assigned this 2021-05-08 19:49:00 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
CompareNoCase incorrectly returns that string1 is greater than string2 for some special characters, sample: