Skip to content
New issue

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

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

Already on GitHub? # to your account

ag not finding accent letters in case insensitive search explicitly with -i option #1520

Open
scodro opened this issue Apr 29, 2023 · 0 comments

Comments

@scodro
Copy link

scodro commented Apr 29, 2023

Trying to find char ê:

$ echo ê | ag ê      # works
ê
$ echo ê | ag -i ê   # does not work
$ 

Verifying other accent letters:

command with -i option:
for c in â ê î ô û á é í ó ú à è ì ò ù ã ẽ ĩ õ ũ ä ë ï ö ü; do echo ' testing' $c; echo 'âêîôûáéíóúàèìòùãẽĩõũäëïöü' | ag -i $c; done
output (not working):
 testing â
 testing ê
 testing î
 testing ô
 testing û
 testing á
 testing é
 testing í
 testing ó
 testing ú
 testing à
 testing è
 testing ì
 testing ò
 testing ù
 testing ã
 testing ẽ
 testing ĩ
 testing õ
 testing ũ
 testing ä
 testing ë
 testing ï
 testing ö
 testing ü
command without -i option:
for c in â ê î ô û á é í ó ú à è ì ò ù ã ẽ ĩ õ ũ ä ë ï ö ü; do echo ' testing' $c; echo 'âêîôûáéíóúàèìòùãẽĩõũäëïöü' | ag $c; done
output (working):
 testing â
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ê
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing î
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ô
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing û
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing á
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing é
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing í
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ó
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ú
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing à
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing è
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ì
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ò
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ù
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ã
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ẽ
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ĩ
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing õ
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ũ
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ä
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ë
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ï
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ö
âêîôûáéíóúàèìòùãẽĩõũäëïöü
 testing ü
âêîôûáéíóúàèìòùãẽĩõũäëïöü

Environment information:

$ ag --version
ag version 2.2.0

Features:
  +jit +lzma +zlib
$ cat /etc/lsb-release 
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=22.1.0
DISTRIB_CODENAME=Talos
DISTRIB_DESCRIPTION="Manjaro Linux"
$ hostnamectl 
 Static hostname: manjaracer
       Icon name: computer-laptop
         Chassis: laptop 💻
Operating System: Manjaro Linux                   
          Kernel: Linux 6.1.25-1-MANJARO
    Architecture: x86-64
 Hardware Vendor: Acer
  Hardware Model: Aspire V3-571
Firmware Version: V2.11

Additional remark:

Could be related to issue #1062

@scodro scodro changed the title ag not finding accent letters in case insensitive search (-i option) ag not finding accent letters in case insensitive search explicitly with -i option May 12, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant