You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/ngrep/files/ngrep-1.45-setlocale.patch

24 lines
526 B

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': {