summaryrefslogtreecommitdiff
path: root/gtk/gtkglobals.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-04-25 06:33:41 +0000
committerGuy Harris <guy@alum.mit.edu>2001-04-25 06:33:41 +0000
commitda38a630cbf7fbaa0f6760eb7f119cb34c1d68d2 (patch)
treeb8d550801ec3507f3cf1175a255b41c418261b66 /gtk/gtkglobals.h
parent9f4a98d0a53350310dda34cad5e2fdbe3b4bd695 (diff)
downloadwireshark-da38a630cbf7fbaa0f6760eb7f119cb34c1d68d2.tar.gz
Undefine "isprint()" before re-defining it, to squelch a compiler
warning. Put in a comment indicating that non-ASCII characters may well pass "isprint()". svn path=/trunk/; revision=3381
Diffstat (limited to 'gtk/gtkglobals.h')
-rw-r--r--gtk/gtkglobals.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk/gtkglobals.h b/gtk/gtkglobals.h
index efe5400b28..f9d4bed5fa 100644
--- a/gtk/gtkglobals.h
+++ b/gtk/gtkglobals.h
@@ -1,7 +1,7 @@
/* gtkglobals.h
* GTK-related Global defines, etc.
*
- * $Id: gtkglobals.h,v 1.14 2001/04/10 12:07:39 gram Exp $
+ * $Id: gtkglobals.h,v 1.15 2001/04/25 06:33:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -51,9 +51,16 @@ void set_plist_font(GdkFont *font);
* MSVCRT's isprint() returns true on values like 0xd2,
* which cause the GtkTextWidget to go wacko.
*
+ * (I.e., whilst non-ASCII characters are considered printable
+ * in the locale in which Ethereal is running - which they might
+ * well be, if, for example, the locale supports ISO Latin 1 -
+ * GTK+'s text widget on Windows doesn't seem to handle them
+ * correctly.)
+ *
* This is a quick fix for the symptom, not the
* underlying problem.
*/
+#undef isprint
#define isprint(c) (c >= 0x20 && c <= 0x7f)
#endif