commit e99ff95fca9fff89d73e230d1cdac03f5630f48a
parent 16ba99a863a89dab25cbf8e9ca410b19a7494c42
Author: Jordan Ritter <jpr5@darkridge.com>
Date: Fri, 21 Feb 2014 10:22:51 -0800
Call setlocale to make isprint() work based on current locale
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=307496++
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ngrep.c b/ngrep.c
@@ -1,4 +1,4 @@
-/*
+o/*
* $Id$
*
* Copyright (c) 2007 Jordan Ritter <jpr5@darkridge.com>
@@ -197,6 +197,8 @@ int main(int argc, char **argv) {
signal(SIGWINCH, update_windowsize);
#endif
+ setlocale(LC_ALL, "");
+
#if !defined(_WIN32)
{
char const *locale = getenv("LANG");