X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flibpspp%2Fi18n.at;h=ed29a7d69ca65cde5e28c23af21a1d80c3a2f737;hb=6673633a0f497a1e2f579680975a9e460003614b;hp=c845519c2372f09d1a9a563a4567811257f07044;hpb=c555358da9c0b1747b9b236ba28ec55efdc89852;p=pspp diff --git a/tests/libpspp/i18n.at b/tests/libpspp/i18n.at index c845519c23..ed29a7d69c 100644 --- a/tests/libpspp/i18n.at +++ b/tests/libpspp/i18n.at @@ -42,3 +42,9 @@ CHECK_I18N([invalid UTF-8 to ISO-8859-1], [UTF-8], [ISO-8859-1], # 0xc2 == 0302 is the first byte of a 2-byte UTF-8 sequence CHECK_I18N([truncated UTF-8 to ISO-8559-1], [UTF-8], [ISO-8859-1], [xy\302], [xy?]) + +dnl The input to this test is 7 bytes long and the expected output is 9 bytes. +dnl So it should exercise the E2BIG case +CHECK_I18N([from ISO-8859-1 to UTF-8 with overflow], [ISO-8859-1], [UTF-8], + [Tsch\374\337!], [Tsch\303\274\303\237!]) +