mcabber/src/screen.c
changeset 1394 bba74a50dedf
parent 1390 753a348c65c1
child 1413 f89844a0448a
--- a/mcabber/src/screen.c	Sun Dec 09 19:17:42 2007 +0100
+++ b/mcabber/src/screen.c	Sun Dec 09 19:26:37 2007 +0100
@@ -3773,7 +3773,19 @@
 
 display:
   if (display_char) {
-    if (kcode.utf8 ? iswprint(key) : (isprint(key) && !is_speckey(key))) {
+    guint printable;
+
+    if (kcode.utf8) {
+      printable = iswprint(key);
+    } else {
+#ifdef __CYGWIN__
+      printable = (isprint(key) || (key >= 161 && key <= 255))
+                  && !is_speckey(key);
+#else
+      printable = isprint(key) && !is_speckey(key);
+#endif
+    }
+    if (printable) {
       char tmpLine[INPUTLINE_LENGTH+1];
 
       // Check the line isn't too long