Mercurial > pidgin.yaz
comparison libpurple/util.c @ 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 | 612f6d000a2a |
comparison
equal
deleted
inserted
replaced
28485:93fac1b47fb5 | 28486:06870444768d |
---|---|
4711 g_return_val_if_reached(NULL); | 4711 g_return_val_if_reached(NULL); |
4712 } | 4712 } |
4713 | 4713 |
4714 workstr = iter = g_new(gchar, strlen(str) + 1); | 4714 workstr = iter = g_new(gchar, strlen(str) + 1); |
4715 for ( ; *str; ++str) { | 4715 for ( ; *str; ++str) { |
4716 if (*str >= 0x20 || *str == '\t' || *str == '\n' || *str == '\r') { | 4716 if ((guchar)*str >= 0x20 || *str == '\t' || *str == '\n' || *str == '\r') { |
4717 *iter = *str; | 4717 *iter = *str; |
4718 ++iter; | 4718 ++iter; |
4719 } | 4719 } |
4720 } | 4720 } |
4721 | 4721 |