[gq-commit] gq/src formfill.c,1.36,1.37
Status: Beta
Brought to you by:
sur5r
From: <sta...@us...> - 2003-10-05 13:41:07
|
Update of /cvsroot/gqclient/gq/src In directory sc8-pr-cvs1:/tmp/cvs-serv4956 Modified Files: formfill.c Log Message: * UTF-8 safety improvements Index: formfill.c =================================================================== RCS file: /cvsroot/gqclient/gq/src/formfill.c,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** formfill.c 4 Oct 2003 10:14:03 -0000 1.36 --- formfill.c 5 Oct 2003 13:40:53 -0000 1.37 *************** *** 42,45 **** --- 42,46 ---- #include "encode.h" #include "i18n.h" + #include "utf8-compat.h" static GList *internalAttrs = NULL; *************** *** 155,159 **** { char *c = g_strdup(attr); ! char *d = strchr(c, ';'); if (d) { --- 156,160 ---- { char *c = g_strdup(attr); ! char *d = g_utf8_strchr(c, -1, ';'); /* UTF-8: doesn't hurt */ if (d) { |