projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
i18n: Test converting between unknown encodings too.
[pspp-builds.git]
/
tests
/
libpspp
/
i18n.at
diff --git
a/tests/libpspp/i18n.at
b/tests/libpspp/i18n.at
index 5444a78ff6cfa9e059b2e1252284765598ecd7f7..421241e5db2f08b57cb766cf83b5c2bd9e16093a 100644
(file)
--- a/
tests/libpspp/i18n.at
+++ b/
tests/libpspp/i18n.at
@@
-55,6
+55,14
@@
dnl So it should exercise the E2BIG case
CHECK_I18N_RECODE([from ISO-8859-1 to UTF-8 with overflow],
[ISO-8859-1], [UTF-8],
[Tsch\374\337!], [Tsch\303\274\303\237!])
CHECK_I18N_RECODE([from ISO-8859-1 to UTF-8 with overflow],
[ISO-8859-1], [UTF-8],
[Tsch\374\337!], [Tsch\303\274\303\237!])
+
+AT_SETUP([convert unknown encoding])
+AT_KEYWORDS([i18n])
+AT_CHECK([i18n-test recode nonexistent1 nonexistent2 asdf], [0], [asdf
+],
+ [Warning: cannot create a converter for `nonexistent1' to `nonexistent2': Invalid argument
+])
+AT_CLEANUP
\f
AT_BANNER([i18n concatenation])
\f
AT_BANNER([i18n concatenation])