Wikinaut / agrep

AGREP - approximate GREP for fast fuzzy string searching. Files are searched for a string or regular expression, with approximate matching capabilities and user-definable records. Developed 1989-1991 by Udi Manber, Sun Wu et al. at the University of Arizona. ISC open source license since Sept. 2014.
Other
299 stars 50 forks source link

utf-8 support #17

Open trebitzki opened 6 years ago

trebitzki commented 6 years ago

Is it possible to search in utf-8 files? I have some foreign names in my file and the -ia option doesn't return those names. I also tried the codepages 437, 850 and 8859 with the -CP option. Is there any workaround?

Wikinaut commented 6 years ago

I am very sorry, but this appears to be not possible, as far as I understand the algorithms (agrep uses a plurality of algorithms).

Wikinaut commented 6 years ago

Pls. keep in mind, that agrep is very very old.

Wikinaut commented 6 years ago

@trebitzki perhaps one of the agrep-alternatives (see https://github.com/Wikinaut/agrep/blob/master/README.md ) is able to search utf-8. I never had the time to check them all thoroughly.

if you find something: please report here!

polluks commented 3 years ago

See https://github.com/Genivia/ugrep.