dovecot-2.2: lib-charset: test-charset unit test - Don't use inv...
dovecot at dovecot.org
dovecot at dovecot.org
Mon May 18 10:58:11 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/0d815b4db957
changeset: 18728:0d815b4db957
user: Timo Sirainen <tss at iki.fi>
date: Mon May 18 13:56:07 2015 +0300
description:
lib-charset: test-charset unit test - Don't use invalid UTF-8 text in source code
diffstat:
src/lib-charset/test-charset.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 713476fa84af -r 0d815b4db957 src/lib-charset/test-charset.c
--- a/src/lib-charset/test-charset.c Mon May 18 06:53:20 2015 -0400
+++ b/src/lib-charset/test-charset.c Mon May 18 13:56:07 2015 +0300
@@ -22,8 +22,8 @@
const char *output;
enum charset_result result;
} tests[] = {
- { "päÃ", "pä", CHARSET_RET_INCOMPLETE_INPUT },
- { "päÃa", "pä"UNICODE_REPLACEMENT_CHAR_UTF8"a", CHARSET_RET_INVALID_INPUT }
+ { "p\xC3\xA4\xC3", "p\xC3\xA4", CHARSET_RET_INCOMPLETE_INPUT },
+ { "p\xC3\xA4\xC3""a", "p\xC3\xA4"UNICODE_REPLACEMENT_CHAR_UTF8"a", CHARSET_RET_INVALID_INPUT }
};
string_t *str = t_str_new(128);
enum charset_result result;
More information about the dovecot-cvs
mailing list