commit | afc944d9b87e5fbd2bbe43853eb8deb6f813ab0a | [log] [tgz] |
---|---|---|
author | FRIGN <dev@frign.de> | Thu Apr 21 22:20:40 2016 +0200 |
committer | sin <sin@2f30.org> | Fri Apr 29 12:16:51 2016 +0100 |
tree | 48a2584696ad3022ed0ca32888647d2b65555531 | |
parent | 727f795e946818fabcded91e83d75f3d5b1fc1f8 [diff] |
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.
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 <locale.h> #include <regex.h> #include <stdio.h> #include <stdlib.h> @@ -179,8 +178,6 @@ FILE *fp; char *arg; - setlocale(LC_ALL, ""); - SLIST_INIT(&phead); ARGBEGIN {