Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken case-insensitive search for Cyrillic characters #3129

Open
detouched opened this issue Mar 30, 2024 · 0 comments
Open

Broken case-insensitive search for Cyrillic characters #3129

detouched opened this issue Mar 30, 2024 · 0 comments
Labels
C-bug Category: bug - something isn't working as it's supposed to

Comments

@detouched
Copy link

detouched commented Mar 30, 2024

Lapce Version

v0.3.1

System information

OS: macOS 14.4.0
Memory: 32 GiB
Architecture: x86_64

Describe the bug

When searching for a substring with Cyrillic characters with disabled Match case option, if the first character is uppercase, then no matches are found (even exact match isn't).

Example:

ПРИВЕТ
привет
Привет
HELLO
hello
Hello

If you search for hello, HELLO or hELLO, all three last rows match as expected. However, only привет matches the first three rows, whereas ПРИВЕТ and Привет surprisingly match no rows at all. In fact, as long as the first letter is lower case, the match works as expected, e.g. пРИВЕТ matches first three rows just fine.

Additional information

image image image

Interestingly, when Match case option is switched on, lookup works as expected.

@detouched detouched added the C-bug Category: bug - something isn't working as it's supposed to label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug - something isn't working as it's supposed to
Projects
None yet
Development

No branches or pull requests

1 participant