On Thu, Aug 23, 2018, 19:57 Bill Ricker <[email protected]> wrote:

>
>
> On Thu, Aug 23, 2018 at 6:26 PM David Cantrell <[email protected]>
> wrote:
>
>> On 2018-08-23 19:25, Richard Simões wrote:
>>
>> > Is it possible to configure ack to search through UTF-16 files?
>
>
It looks, so far, as if it should be possible to implement a patch to
enable this at least. We already peak at files' magic number and shebang #!
lines, so checking for a Unicode prefix shouldn't disrupt existing code
much.

 I'm going to wander through CPAN and see if there's a Unicode module that
will automate detect ing the BOM and setting the UTF binmode accordingly.

(It's vaguely possible one of them would work without a patch via
  Perl -MUnicode::something bin/ack
but I'm not that optimistic -- yet. But it's plausible.)

Richard, do you happen to know of a public (CC or PD etc) file that is
already UTF-16 that we can use as test data?

Bill

-- 
You received this message because you are subscribed to the Google Groups "ack 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ack-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to