/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* test for the RFC 2047 encoder */ #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/~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; } class='main'>index : freebsd-ports
FreeBSD Ports (https://github.com/freebsd/freebsd-ports)
aboutsummaryrefslogblamecommitdiffstats
blob: 7baaeb5eda07187062d97c7509f6eee272f02ebd (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                


                                                        
           

 

                        
                     

                                                           
                           

                    
                                 
                                                     
 
                                                       


                                               
                   







                                                             
# New ports collection makefile for:    xothello
# Date created:             31 March 1998
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   xothello
PORTVERSION=    0.01
CATEGORIES= games
# mastersite disappeared in January 2002
MASTER_SITES=   # http://makosteszta.sote.hu/linux/othello/
DISTNAME=   ${PORTNAME}
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Othello aka Reversi game for X Window

LIB_DEPENDS=    forms.1:${PORTSDIR}/x11-toolkits/xforms

NO_CDROM=   Possible trademark infringement

USE_X_PREFIX=   yes

pre-build:
    @ ${RM} ${WRKSRC}/xothello

do-install:
    @ ${INSTALL_PROGRAM} ${WRKSRC}/xothello ${PREFIX}/bin

.include <bsd.port.mk>