beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

Searching for Unicode #437

Closed clonezone closed 4 years ago

clonezone commented 10 years ago

I have a file, angles.txt, containing the UTF-8 bytes for:

«x»

Now, if I run perl -CS -n -e 'if (/\x{ab}x\x{bb}/) { print $& }' <angles.txt, I get the expected match. However, running ack '\x{ab}x\x{bb}' angles.txt or ack '\x{ab}x\x{bb}' <angles.txt results in no output.

This is with perl 5.16.2 and ack 2.12.

hoelzro commented 10 years ago

@clonezone Thanks for bringing this up; unfortunately, Unicode support in ack 2.0 is a...complicated issue. See #120, #344, #350, #355.