LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug: CompareStrings() in UTF-8

I found a bug inside CVI2020. If I use the formatio.h function CompareStrings() inside a UTF-8 project two unequal strings recognised as equal.

 

Use the example "listbox" (look inside description of CompareStrings)

 

Change row 79 to this:

if (CompareStrings (label, 0, removeitem, 0, 0) == 0)          0 = Specify 0 or select No in the function panel to match characters on a case-insensitive basis.

 

Add these new items with name:

test

test123

 

Then remove test123. program remove only test123

 

Switch project to UTF-8 and repeat the example:

 

program remove test and test123

 

If I change the parameter from 0 back to 1 (case-sensitive), then the function works.

0 Kudos
Message 1 of 1
(175 Views)