Details
-
Suggestion
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.15.2
-
None
Description
short explanation:
qstring fails to recognise different unicode/utf8 representations of the same character as equivalents.
steps to reproduce:
- start qt creator
- create a new qt console application project (mine uses cmake, but it shouldn't really matter)
- try to compile in as-is to make sure you can compile
- close qt creator
- overwrite main.cpp inside this dummy project with the attached file
- reopen qt creator
- reopen the project
- build
- run
actual stderr output:
"ö" "ö" "ö" "ö" this one is false but should be true this one is false but should be true true true ok so even the pointers are the same, no strcmp needed yes, these byte sequeces are expected to differ
expected result:
"ö" "ö" "ö" "ö" this one is true but should be true this one is true but should be true true true ok so even the pointers are the same, no strcmp needed yes, these byte sequeces are expected to differ
also, a22.length() is 2, it should be 1.
if I ctrl-f for one of them in gedit, it finds both of them, which suggests that they are actually different representations of the same character.
Thank you for the fix in advance.