{"issue":{"state":"open","created_at":"2011-01-27T18:09:34Z","updated_at":"2011-12-15T15:00:49Z","user":{"gravatar_id":"e74cd75b9287ce05435500e97b1dedcd","id":53106,"url":"https://api.github.com/users/ericcj","avatar_url":"https://secure.gravatar.com/avatar/e74cd75b9287ce05435500e97b1dedcd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"ericcj"},"comments":9,"body":"also, this bug was closed for a bogus reason and should be reopened:  https://github.com/protocool/AckMate/issues/closed#issue/13","assignee":null,"id":556674,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":18,"title":"offending filename should be logged on Malformed UTF-8 error","html_url":"https://github.com/protocool/AckMate/issues/18","closed_at":null,"milestone":null,"url":"https://api.github.com/repos/protocool/AckMate/issues/18"},"action":"created","comment":{"created_at":"2011-12-15T15:00:49Z","updated_at":"2011-12-15T15:00:49Z","user":{"gravatar_id":"578b7853042db14893ee5ec2ce043f98","id":6473,"url":"https://api.github.com/users/yyyc514","avatar_url":"https://secure.gravatar.com/avatar/578b7853042db14893ee5ec2ce043f98?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"yyyc514"},"body":"At the end of my needs_line_scan method (around line 2597) I changed the end of the method to:\r\n\r\n```\r\n    my $regex = $opt->{regex};\r\n    if ( ! utf8::valid($buffer) ) {\r\n\t\t\t$buffer = Encode::encode_utf8($buffer);\r\n    }\r\n\t\treturn $buffer =~ /$regex/m;\r\n```\r\n\r\nAnd you have to add 'use utf8;'  to the beginning of the script... does this seem reasonable?","id":3161992,"url":"https://api.github.com/repos/protocool/AckMate/issues/comments/3161992"}}