Mercurial > pidgin.yaz
changeset 28486:06870444768d
fixed a bug in purple_utf8_strip_unprintables() that all characters with 8th bit set would be dropped.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 30 Aug 2009 07:56:49 +0900 |
parents | 93fac1b47fb5 |
children | 6e22a8c188c5 |
files | libpurple/util.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Sun Aug 30 03:04:43 2009 +0900 +++ b/libpurple/util.c Sun Aug 30 07:56:49 2009 +0900 @@ -4713,7 +4713,7 @@ workstr = iter = g_new(gchar, strlen(str) + 1); for ( ; *str; ++str) { - if (*str >= 0x20 || *str == '\t' || *str == '\n' || *str == '\r') { + if ((guchar)*str >= 0x20 || *str == '\t' || *str == '\n' || *str == '\r') { *iter = *str; ++iter; }