{"action":"created","issue":{"url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/805","labels_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/805/labels{/name}","comments_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/805/comments","events_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/805/events","html_url":"https://github.com/ggreer/the_silver_searcher/pull/805","id":120767343,"number":805,"title":"Match same-case non-ascii when doing strncasestr.","user":{"login":"wapiflapi","id":1619783,"avatar_url":"https://avatars.githubusercontent.com/u/1619783?v=3","gravatar_id":"","url":"https://api.github.com/users/wapiflapi","html_url":"https://github.com/wapiflapi","followers_url":"https://api.github.com/users/wapiflapi/followers","following_url":"https://api.github.com/users/wapiflapi/following{/other_user}","gists_url":"https://api.github.com/users/wapiflapi/gists{/gist_id}","starred_url":"https://api.github.com/users/wapiflapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wapiflapi/subscriptions","organizations_url":"https://api.github.com/users/wapiflapi/orgs","repos_url":"https://api.github.com/users/wapiflapi/repos","events_url":"https://api.github.com/users/wapiflapi/events{/privacy}","received_events_url":"https://api.github.com/users/wapiflapi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-07T12:50:57Z","updated_at":"2015-12-14T08:37:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ggreer/the_silver_searcher/pulls/805","html_url":"https://github.com/ggreer/the_silver_searcher/pull/805","diff_url":"https://github.com/ggreer/the_silver_searcher/pull/805.diff","patch_url":"https://github.com/ggreer/the_silver_searcher/pull/805.patch"},"body":"This doesn't fix the problem that we don't know how to do non-case-sensitive matching on UTF8 and the like, but at least this makes it so we don't fail when it's an exact match.\r\n\r\nFixes #241 (or at least strictly improves.)"},"comment":{"url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/comments/164378192","html_url":"https://github.com/ggreer/the_silver_searcher/pull/805#issuecomment-164378192","issue_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/805","id":164378192,"user":{"login":"wapiflapi","id":1619783,"avatar_url":"https://avatars.githubusercontent.com/u/1619783?v=3","gravatar_id":"","url":"https://api.github.com/users/wapiflapi","html_url":"https://github.com/wapiflapi","followers_url":"https://api.github.com/users/wapiflapi/followers","following_url":"https://api.github.com/users/wapiflapi/following{/other_user}","gists_url":"https://api.github.com/users/wapiflapi/gists{/gist_id}","starred_url":"https://api.github.com/users/wapiflapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wapiflapi/subscriptions","organizations_url":"https://api.github.com/users/wapiflapi/orgs","repos_url":"https://api.github.com/users/wapiflapi/repos","events_url":"https://api.github.com/users/wapiflapi/events{/privacy}","received_events_url":"https://api.github.com/users/wapiflapi/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T08:37:24Z","updated_at":"2015-12-14T08:37:24Z","body":"I have basically the same locale you do:\r\n```\r\nLANG=en_US.UTF-8\r\nLANGUAGE=\r\nLC_CTYPE=\"en_US.UTF-8\"\r\nLC_NUMERIC=\"en_US.UTF-8\"\r\nLC_TIME=\"en_US.UTF-8\"\r\nLC_COLLATE=\"en_US.UTF-8\"\r\nLC_MONETARY=\"en_US.UTF-8\"\r\nLC_MESSAGES=\"en_US.UTF-8\"\r\nLC_PAPER=\"en_US.UTF-8\"\r\nLC_NAME=\"en_US.UTF-8\"\r\nLC_ADDRESS=\"en_US.UTF-8\"\r\nLC_TELEPHONE=\"en_US.UTF-8\"\r\nLC_MEASUREMENT=\"en_US.UTF-8\"\r\nLC_IDENTIFICATION=\"en_US.UTF-8\"\r\nLC_ALL=\r\n```\r\n\r\nTesting with latest master from git, `ag version 0.31.0` on `x86_64 / Ubuntu LTS`.\r\n\r\nFor the record, here is the md5sum of the input, maybe that's encoded differently for you or something? I don't really buy this but just checking.\r\n```\r\n$ echo café | md5sum\r\n6e99834b7c3e3fd53529a5489725d7e8  -\r\n$ echo café | ./ag café\r\ncafé\r\n$ echo café | ./ag -i café # No match\r\n```\r\n"}}