On Sun, Apr 09, 2006 at 10:38:58PM +0100, Peter Stephenson wrote: > This adds handling for multibyte characters in patterns when the shell > is compiled with MULTIBYTE_SUPPORT. FYI, I just checked in a few changes to pattern.c to fix some compiler warnings about signed/unsigned mismatches. There were two spots that were still using an "int" where they should have been using the new patchar_t typedef. One of these was assigning a literal -1 to the variable, so I added a PEOF define to use either WEOF or EOF for this value (like the Zle code uses -- perhaps we should make a global define for this in zsh.h?). Finally, I changed the multibyte version of patchar_t to use wint_t instead of wchar_t (since this is what the towupper()-style functions return), and in so doing, I renamed the typedef to be patint_t (since the non-multibyte version is an "int"). Attached is the patch. ..wayne..