[Libreoffice-bugs] [Bug 148650] InStr finds match in string containing diacritics

2022-05-02 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=148650

--- Comment #6 from Mike Kaganski  ---
(In reply to Andreas Heinisch from comment #5)

The problem here is the inconsistency IMO. Every character with a diacritic
could be represented as a base character plus combining characters. But only
two were decomposed like that.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 148650] InStr finds match in string containing diacritics

2022-05-02 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=148650

--- Comment #5 from Andreas Heinisch  ---
Should we close this as NOTABUG since Calc's '=SEARCH("ι";A1)' returns the same
result as the macro?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 148650] InStr finds match in string containing diacritics

2022-04-18 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=148650

--- Comment #4 from Jordi  ---
(In reply to Mike Kaganski from comment #2)
> The transliteration (with only TransliterationFlags::IGNORE_CASE set!) used
> to make case-insensitive match converts the 16-character string into these
> 20 characters:
> 'ά' - 'ά'
> 'έ' - 'έ'
> 'ί' - 'ί'
> 'ό' - 'ό'
> 'ύ' - 'ύ'
> 'ώ' - 'ώ'
> 'ή' - 'ή'
> 'ΐ' - 'ι'
>   '̈'
>   '́'
> 'ΰ' - 'υ'
>   '̈'
>   '́'
> 'Ά' - 'ά'
> 'Έ' - 'έ'
> 'Ί' - 'ί'
> 'Ό' - 'ό'
> 'Ύ' - 'ύ'
> 'Ώ' - 'ώ'
> 'Ή' - 'ή'
> 
> Indeed, the searched character is found there.
> Of course, it *seems* that the original code should use case-insensitive
> ("binary") comparison, and replacing 'instr(grkchrs, "ι")' with 'instr(1,
> grkchrs, "ι", 0)' gives the expected 0. But is the transliteration correct
> in this case?
> 
> Eike: do you know if it's correct?

Great, thanks for the heads up on the mode option. It solves my immediate
problem. Alas 7.3.2.2 is unstable for me so back to my old version I go.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 148650] InStr finds match in string containing diacritics

2022-04-18 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=148650

--- Comment #3 from Mike Kaganski  ---
FTR: Calc's '=SEARCH("ι";A1)' also returns 8.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 148650] InStr finds match in string containing diacritics

2022-04-18 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=148650

Mike Kaganski  changed:

   What|Removed |Added

 CC||er...@redhat.com

--- Comment #2 from Mike Kaganski  ---
The transliteration (with only TransliterationFlags::IGNORE_CASE set!) used to
make case-insensitive match converts the 16-character string into these 20
characters:
'ά' - 'ά'
'έ' - 'έ'
'ί' - 'ί'
'ό' - 'ό'
'ύ' - 'ύ'
'ώ' - 'ώ'
'ή' - 'ή'
'ΐ' - 'ι'
  '̈'
  '́'
'ΰ' - 'υ'
  '̈'
  '́'
'Ά' - 'ά'
'Έ' - 'έ'
'Ί' - 'ί'
'Ό' - 'ό'
'Ύ' - 'ύ'
'Ώ' - 'ώ'
'Ή' - 'ή'

Indeed, the searched character is found there.
Of course, it *seems* that the original code should use case-insensitive
("binary") comparison, and replacing 'instr(grkchrs, "ι")' with 'instr(1,
grkchrs, "ι", 0)' gives the expected 0. But is the transliteration correct in
this case?

Eike: do you know if it's correct?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 148650] InStr finds match in string containing diacritics

2022-04-18 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=148650

--- Comment #1 from Vladimir Sokolinskiy  ---
Returns 8 in:
Version: 7.3.2.2 (x64) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 6; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 148650] InStr finds match in string containing diacritics

2022-04-18 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=148650

Mike Kaganski  changed:

   What|Removed |Added

   See Also||https://bugs.documentfounda
   ||tion.org/show_bug.cgi?id=13
   ||9840

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 148650] InStr finds match in string containing diacritics

2022-04-18 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=148650

Jordi  changed:

   What|Removed |Added

Summary|InStr find match in string  |InStr finds match in string
   |containing diacritics   |containing diacritics

-- 
You are receiving this mail because:
You are the assignee for the bug.