projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pspp: Fix crash passing the name of a nonexistent file on the command line.
[pspp]
/
tests
/
libpspp
/
i18n.at
diff --git
a/tests/libpspp/i18n.at
b/tests/libpspp/i18n.at
index c845519c2372f09d1a9a563a4567811257f07044..ed29a7d69ca65cde5e28c23af21a1d80c3a2f737 100644
(file)
--- 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?])
# 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!])
+