<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Call setlocale to make isprint() decide what's printable depending
on the current locale.  See #307496.

---
 ngrep.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/ngrep.c
+++ b/ngrep.c
@@ -97,6 +97,8 @@
 #include "regex-0.12/regex.h"
 #endif
 
+#include &lt;locale.h&gt;
+
 #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': {
</pre></body></html>