Revision: 6796 Author: deton.kih Date: Fri Nov 5 20:12:40 2010 Log: * uim/bsdlook.c (uim_look): - Fix bug which ignores 0xfe (used in EUC-JP Kanji) in search string.
http://code.google.com/p/uim/source/detail?r=6796 Modified: /trunk/uim/bsdlook.c ======================================= --- /trunk/uim/bsdlook.c Sun Jul 12 21:20:06 2009 +++ /trunk/uim/bsdlook.c Fri Nov 5 20:12:40 2010 @@ -203,17 +203,17 @@ uim_look(char *string, uim_look_ctx *ctx) { int ch; - char *readp, *writep; + unsigned char *readp, *writep; int fflag = ctx->fflag, dflag = ctx->dflag; /* Reformat string to avoid doing it multiple times later. */ - for (readp = writep = string; (ch = *readp++) != '\0';) { + for (readp = writep = (unsigned char *)string; (ch = *readp++) != '\0';) { if (fflag) ch = FOLD(ch); if (dflag) ch = DICT(ch); if (ch != NO_COMPARE) - *(writep++) = (char)ch; + *(writep++) = (unsigned char)ch; } *writep = '\0';
