123456789101112131415161718192021222324 |
- Call setlocale to make isprint() decide what's printable depending
- on the current locale. See bugs.debian.org/307496 .
- --- ngrep-1.45.ds1.orig/ngrep.c
- +++ ngrep-1.45.ds1/ngrep.c
- @@ -97,6 +97,8 @@
- #include "regex-0.12/regex.h"
- #endif
-
- +#include <locale.h>
- +
- #include "ngrep.h"
-
-
- @@ -195,6 +197,8 @@
- 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': {
|