1
0
mirror of git://git.suckless.org/sbase synced 2024-12-22 23:13:44 +00:00

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.
This commit is contained in:
FRIGN 2016-04-21 22:20:40 +02:00 committed by sin
parent 727f795e94
commit afc944d9b8

3
grep.c
View File

@ -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 @@ main(int argc, char *argv[])
FILE *fp;
char *arg;
setlocale(LC_ALL, "");
SLIST_INIT(&phead);
ARGBEGIN {