From afc944d9b87e5fbd2bbe43853eb8deb6f813ab0a Mon Sep 17 00:00:00 2001 From: FRIGN Date: Thu, 21 Apr 2016 22:20:40 +0200 Subject: [PATCH] Remove locale-cancer from grep(1) What in the actual fuck? Check the ml history on why we won't use locale() functions in this context. --- grep.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/grep.c b/grep.c index 22b3b6f..64ffbe2 100644 --- a/grep.c +++ b/grep.c @@ -1,5 +1,4 @@ /* See LICENSE file for copyright and license details. */ -#include #include #include #include @@ -179,8 +178,6 @@ main(int argc, char *argv[]) FILE *fp; char *arg; - setlocale(LC_ALL, ""); - SLIST_INIT(&phead); ARGBEGIN {