ongrep

A cleaned up fork of ngrep for OpenBSD
git clone git://git.sgregoratto.me/ongrep
Log | Files | Refs | README | LICENSE

commit 3e2564b2fbc08eda3857989c641d26f8e2939fd8
parent 5a56b0d3315e5277f367937a00aa3aa9232c4ac8
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Fri,  1 Dec 2006 05:54:18 +0000

apply setlocale() patch from debian guys (hey guys can you pass that stuff along to me?)

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

diff --git a/ngrep.c b/ngrep.c @@ -74,6 +74,7 @@ #include <stdlib.h> #include <string.h> #include <signal.h> +#include <locale.h> #if !defined(_WIN32) #include <errno.h> @@ -195,6 +196,8 @@ int main(int argc, char **argv) { signal(SIGWINCH, update_windowsize); #endif + setlocale(LC_ALL, ""); + while ((c = getopt(argc, argv, "LNhXViwqpevxlDtTRMs:n:c:d:A:I:O:S:P:F:W:")) != EOF) { switch (c) { case 'W': {