ongrep

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

commit 0b02814bfee10487a341d6d8541f67e164572323
parent 00db1b5e41bd2d26a6d35dbeb51bbbe08f62e72f
Author: Stephen Gregoratto <dev@sgregoratto.me>
Date:   Sun, 14 Jun 2020 18:22:07 +1000

Remove locale setting

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

diff --git a/ngrep.c b/ngrep.c @@ -116,16 +116,6 @@ int main(int argc, char **argv) { signal(SIGPIPE, clean_exit); signal(SIGWINCH, update_windowsize); - setlocale(LC_ALL, ""); - - { - char const *locale = getenv("LANG"); - if (locale == NULL) - locale = "en_US"; - - setlocale(LC_CTYPE, locale); - } - while ((c = getopt(argc, argv, "NhXViwqpevxlDtTRMCs:n:c:d:A:I:O:S:P:F:W:")) != EOF) { switch (c) { case 'W': {