commit 69e8f11a2c4dd6a22a1541d17e49aab3cd21de0d
parent 2a3f6effb79d61d1611e458b05a4ac3ef2779410
Author: Jordan Ritter <jpr5@darkridge.com>
Date: Fri, 1 Dec 2006 07:40:56 +0000
call setlocale(LC_ALL, "") only on UNIX platforms -- on Win32, it sets
the locale to the standard ANSI 8bit codepage which completely whacks
out isprint().
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/ngrep.c b/ngrep.c
@@ -195,7 +195,9 @@ int main(int argc, char **argv) {
signal(SIGWINCH, update_windowsize);
#endif
+#if !defined(_WIN32)
setlocale(LC_ALL, "");
+#endif
while ((c = getopt(argc, argv, "LNhXViwqpevxlDtTRMs:n:c:d:A:I:O:S:P:F:W:")) != EOF) {
switch (c) {