/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* test for the RFC 2047 decoder */ #include #include #include "gmime-utils.h" #include "stdio.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/~mgk/unicode.html * */ const char *tests[] = { /* these strings come from RFC 2047. Ought to add a few torture cases here. */ "=?US-ASCII?Q?Keith_Moore?= ", "=?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= ", "=?ISO-8859-1?Q?Andr=E9?= Pirard ", "=?ISO-8859-1?B?SWYgeW91IGNhbiByZWFkIHRoaXMgeW8=?= =?ISO-8859-2?B?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?=", "=?ISO-8859-1?Q?Olle_J=E4rnefors?= ", "=?ISO-8859-1?Q?Patrik_F=E4ltstr=F6m?= ", "Nathaniel Borenstein (=?iso-8859-8?b?7eXs+SDv4SDp7Oj08A==?=)", "", "(=?ISO-8859-1?Q?a?=)", /* should be displayed as (a) */ "(=?ISO-8859-1?Q?a?= b)", /* (a b) */ "(=?ISO-8859-1?Q?a?= =?ISO-8859-1?Q?b?=)", /* (ab) */ "(=?ISO-8859-1?Q?a?= =?ISO-8859-1?Q?b?=)", /* (ab) */ "(=?ISO-8859-1?Q?a?= \n=?ISO-8859-1?Q?b?=)", /* (ab) */ "(=?ISO-8859-1?Q?a_b?=)", /* (a b) */ "(=?ISO-8859-1?Q?a?= =?ISO-8859-2?Q?_b?=)", /* (ab) */ NULL }; int main (int argc, char**argv) { const char **b = tests; while (*b) { printf("%s\n", gmime_rfc2047_decode(*b, TERMINAL_CHARSET)); b++; } return 0; } /devel/electron4/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron4/files/elliptic-6.5.4 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Remove USE_GNOME=gnometarget from ports. It has been a empty keyword sincekwm2011-08-121-1/+1
* - Get Rid MD5 supportmiwi2011-03-201-1/+0
* Fix a few typos in ports/cad.olgeni2010-07-301-1/+1
* - update to 1.4.1dinoex2010-03-281-1/+1
* - update to jpeg-8dinoex2010-02-051-1/+1
* - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-1/+1
* Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1
* - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1
* remove USE_REINPLACE for all ports with categories starting with Cedwin2006-05-041-1/+0
* - Add SHA256pav2005-11-241-0/+1