Page 1 of 1

Filter inconsistencies (bug?)

Posted: Wed May 20, 2015 8:53 pm
by hliljegren
If you try the following:

Code: Select all

put "SMART,SMARt,SmArT,smart,Nöje,NÖJE,NöJe,nöje,NÖje" into tStr
filter items of tStr with "smart"
You get every version of smart (SMART,SMARt,SmArT,smart) but if you do the following:

Code: Select all

put "SMART,SMARt,SmArT,smart,Nöje,NÖJE,NöJe,nöje,NÖje" into tStr
filter items of tStr with "nöje"
You only get Nöje,NöJe,nöje. i.e. all items where the lowercase 'ö' matches the lowercase 'ö' in nöje. All items with uppcase 'Ö' will be removed

You get the same result with ä vs Ä, å vs Å, é vs É etc. I.e. all characters with combined diacritical marks will not match case insensitive. Is this a bug or what?

If I do the following code:

Code: Select all

   if "nöje" is "NÖJE" then 
      answer "YES"
   else
      answer "NO"
   end if
The answer is "YES"...

:-Håkan (Which doesn't match HÅKAN when filtering...)

Re: Filter inconsistencies (bug?)

Posted: Fri May 22, 2015 5:08 pm
by jmburnod
Hi hliljegren,

I think you have to use casesensitive

Code: Select all

set the casesensitive to true
put "SMART,SMARt,SmArT,smart,Nöje,NÖJE,NöJe,nöje,NÖje" into tStr
filter items of tStr with "smart"
set the casesensitive to false
Best regards
Jean-Marc

Re: Filter inconsistencies (bug?)

Posted: Wed May 27, 2015 8:14 am
by hliljegren
Thanks for the suggestion but the problem is rather the opposite. If I enable case sensitivity I works as supposed but the problem is when case sensitivity if off (false) the lower case ´ö´doesn't match the upper case ´Ö´ and it looks like it is the same for every letter with combine diacritical marks. Sending a bug report now and see what they say...