comparison src/xterm.c @ 23567:5a0cdfd791a2

(XTread_socket): Check the returned value of XmbLookupString more carefully.
author Paul Eggert <eggert@twinsun.com>
date Thu, 29 Oct 1998 00:16:49 +0000
parents 1e52542fb338
children 701b6bdc7a22
comparison
equal deleted inserted replaced
23566:25baa4bda79d 23567:5a0cdfd791a2
4237 break; 4237 break;
4238 nbytes = XmbLookupString (FRAME_XIC (f), 4238 nbytes = XmbLookupString (FRAME_XIC (f),
4239 &event.xkey, copy_buffer, 4239 &event.xkey, copy_buffer,
4240 80, &keysym, 4240 80, &keysym,
4241 &status_return); 4241 &status_return);
4242 if (status_return == XLookupNone)
4243 break;
4244 else if (status_return == XLookupChars)
4245 keysym = NoSymbol;
4246 else if (status_return != XLookupKeySym
4247 && status_return != XLookupBoth)
4248 abort ();
4242 } 4249 }
4243 else 4250 else
4244 nbytes = XLookupString (&event.xkey, copy_buffer, 4251 nbytes = XLookupString (&event.xkey, copy_buffer,
4245 80, &keysym, &compose_status); 4252 80, &keysym, &compose_status);
4246 #else 4253 #else
4355 bufp++; 4362 bufp++;
4356 } 4363 }
4357 4364
4358 count += nbytes; 4365 count += nbytes;
4359 numchars -= nbytes; 4366 numchars -= nbytes;
4367
4368 if (keysym == NoSymbol)
4369 break;
4360 } 4370 }
4361 else 4371 else
4362 abort (); 4372 abort ();
4363 } 4373 }
4364 else 4374 else