diff options
author | nobody <nobody@localhost> | 1999-09-27 11:12:05 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 1999-09-27 11:12:05 +0800 |
commit | 9ebed998dbb0afd30bb8ba9ee38e77b6d30988b6 (patch) | |
tree | 0d7145e4b9fee9d06c7154a788e02811bb1fc20b /tests/test6.c | |
parent | ea421e8d5838d758418aa3e6fddafe593badb15f (diff) | |
download | gsoc2013-evolution-9ebed998dbb0afd30bb8ba9ee38e77b6d30988b6.tar gsoc2013-evolution-9ebed998dbb0afd30bb8ba9ee38e77b6d30988b6.tar.gz gsoc2013-evolution-9ebed998dbb0afd30bb8ba9ee38e77b6d30988b6.tar.bz2 gsoc2013-evolution-9ebed998dbb0afd30bb8ba9ee38e77b6d30988b6.tar.lz gsoc2013-evolution-9ebed998dbb0afd30bb8ba9ee38e77b6d30988b6.tar.xz gsoc2013-evolution-9ebed998dbb0afd30bb8ba9ee38e77b6d30988b6.tar.zst gsoc2013-evolution-9ebed998dbb0afd30bb8ba9ee38e77b6d30988b6.zip |
This commit was manufactured by cvs2svn to create tagGNOME_LIBS_1_0_42
'GNOME_LIBS_1_0_42'.
svn path=/tags/GNOME_LIBS_1_0_42/; revision=1259
Diffstat (limited to 'tests/test6.c')
-rw-r--r-- | tests/test6.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/test6.c b/tests/test6.c deleted file mode 100644 index ead8312c52..0000000000 --- a/tests/test6.c +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ - -/* test for the RFC 2047 encoder */ - -#include <string.h> -#include <unicode.h> - -#include "gmime-utils.h" -#include "stdio.h" -#include "camel-log.h" -#include "camel-mime-message.h" -#include "camel-mime-part.h" -#include "camel-stream.h" -#include "camel-stream-fs.h" -#include "camel.h" -#include "gmime-rfc2047.h" - -#define TERMINAL_CHARSET "UTF-8" - -/* - * Info on many unicode issues, including, utf-8 xterms from : - * - * http://www.cl.cam.ac.uk/~mgk25/unicode.html - * - */ - -const char *tests[] = -{ - "is is a test", "ISO-8859-1", - "Itrtinlation", "ISO-8859-1", - "Καλημέρα κόσμε", "UTF-8", - "コンニチハ", "UTF-8", - "ði ıntəˈnæʃənəl fəˈnɛtık əsoʊsiˈeıʃn", "UTF-8", - NULL -}; - - -int -main (int argc, char**argv) -{ - const char **b = tests; - while (*b) { - char *e = gmime_rfc2047_encode(b[0], b[1]); - printf("%s\t%s\n", e, gmime_rfc2047_decode(e, TERMINAL_CHARSET)); - b+=2; - } - - return 0; - -} |