Created
August 9, 2011 23:10
-
-
Save artzte/1135457 to your computer and use it in GitHub Desktop.
additional ackmate_ack patch to report source of utf-8 errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# insert prior to line 2613 / return $buffer =~ /$regex/m; | |
local $SIG{__WARN__} = sub { | |
my $e = shift; | |
App::Ack::warn( "$e\n $self->{filename}:\n\nYou probably want to either convert this file to utf-8, ignore it in ~/.ackrc, or delete it.\n\n" ); | |
return; | |
}; | |
# end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment