Subject: FvwmForm not accepting international characters

From: [email-masked]
Date: Wed, 17 Feb 1999 07:59:29 -0600 (CST)

Full_Name: Anders Melchiorsen
Version: 2.1.10
CVS_Date: 
OS: RedHat 5 based Linux 2.2.1
X_Server: XFree86 3.3.3.1
Submission from: (NULL) (130.225.71.227)

For a long time, I have been bothered by not being able to type the
national characters of my language into FvwmForm forms.
This patch fixes it.

--- FvwmForm.c.orig     Wed Feb 17 14:26:29 1999
+++ FvwmForm.c  Wed Feb 17 14:30:40 1999
@@ -1150,7 +1150,7 @@
   Item *item, *old_item;
   KeySym ks;
   char *sp, *dp, *ep;
-  static char buf[10], n;
+  static unsigned char buf[10], n;
 
   while (XEventsQueued(dpy, QueuedAfterReading)) {
     XNextEvent(dpy, &event);
@@ -1338,7 +1338,8 @@
          break;
        default:
          old_cursor = abs_cursor;
-         if (buf[0] >= ' ' && buf[0] < '\177') {  /* regular char */
+         /* regular char */
+         if ((buf[0] >= ' ' && buf[0] < '\177') || (buf[0] >= 160)) {
            if (++(cur_text->input.n) >= cur_text->input.buf) {
              cur_text->input.buf += cur_text->input.size;
              cur_text->input.value =

--
Visit the official FVWM web page at <URL:http://fvwm.math.uh.edu/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked].