19ed8f08b23d6ed204e6b27e5d1c0c6fe6bb11dd |
|
15-Nov-2015 |
Phil Carmody <phil@dovecot.fi> |
various - remove 8-bit characters from literal strings in test cases
C has a portable way of expressing characters not in the basic character
set, namely \xNN escaping. Otherwise, the interpretation of the raw utf-8
is implentation dependent. This has the benefit of making some tests'
expected output more obvious, such as "=c3=a4" matching "\xC3\xA4", even
if it hinders the readability of some natural-language-based tests.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
64d895bcca177ee840268180ca7a4e3841295613 |
|
08-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
lib-charset: Fixed assert-crash with some iconv() versions.
Older glibc iconv() versions seem to skip over invalid characters, at least
with some charsets, while newer versions don't. We were assuming that the
skipping never happened, so if the invalid character was at the end of the
string we could have wrapped size to (size_t)-1 and caused a crash later on. |