sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit afc944d9b87e5fbd2bbe43853eb8deb6f813ab0a
parent 727f795e946818fabcded91e83d75f3d5b1fc1f8
Author: FRIGN <dev@frign.de>
Date:   Thu, 21 Apr 2016 22:20:40 +0200

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.

Diffstat:
Mgrep.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

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