diff options
Diffstat (limited to 'unicode/unicodetest.c')
| -rw-r--r-- | unicode/unicodetest.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/unicode/unicodetest.c b/unicode/unicodetest.c index b309ad6..e9e4228 100644 --- a/unicode/unicodetest.c +++ b/unicode/unicodetest.c @@ -140,6 +140,28 @@ int main(int argc, char **argv) ++argn; } + if (argn < argc && strcmp(argv[argn], "--modutf7toutf8") == 0) + { + while (++argn < argc) + { + int error=0; + char *p=unicode_convert_tobuf(argv[argn], + unicode_x_imap_modutf7, + unicode_x_smap_modutf8, + &error); + + if (p) + { + printf("%s\n", p); + free(p); + } + else + { + printf("[error]\n"); + } + } + } + if (argn < argc && strcmp(argv[argn], "--totitle") == 0) { ++argn; |
