aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-pilot-util.c
blob: 780336a62f5fe1bc2a3103f64fbdadec24e6a00f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* Evolution Conduits - Pilot Map routines
 *
 * Copyright (C) 2000 Ximian, Inc.
 *
 * Authors: JP Rosevear <jpr@ximian.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
 */

#include <stdlib.h>
#include <time.h>
#include <gnome-xml/parser.h>
#include <pi-util.h>

#include "e-pilot-util.h"

char *
e_pilot_utf8_to_pchar (const char *string)
{
    char *pstring = NULL;
    int res;

    if (!string)
        return NULL;
    
    res = convert_ToPilotChar ("UTF8", string, strlen (string), &pstring);

    if (res != 0)
        pstring = strdup (string);

    return pstring;
}

char *
e_pilot_utf8_from_pchar (const char *string)
{
    char *ustring = NULL;
    int res;

    if (!string)
        return NULL;
    
    res = convert_FromPilotChar ("UTF8", string, strlen (string), &ustring);
    
    if (res != 0)
        ustring = strdup (string);
    
    return ustring;
}
antw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/emulators/vmware3?h=gstreamer&id=65a1f97b2043f9faaa891b9a863f8803e101b8d4'>With a serious of very ugly hacks, make FreeBSD 6 support work againsilby2005-11-133-0/+64 * Correct dependency on rtc - it has resided in /dev/rtc instead ofsilby2005-10-141-1/+1 * Fix installation of 001.vmware.shsilby2005-10-141-3/+3 * Fix last commit, make the fetch actually work.silby2005-10-131-1/+1 * Add a working site to fetch the tar.gz from. No version bumpsilby2005-10-131-1/+1 * Mega-patch to cleanup the ports infrastructure regarding our linux bits:netchild2005-06-181-4/+4 * Respect the user's USE_LINUX setting.trevor2005-03-021-1/+0 * Update MASTER_SITES:vs2005-02-231-3/+1 * Say hello to the linux mega patch, it consolidates our linux bits anetchild2005-01-011-2/+3 * Make portlint happyedwin2004-12-152-9/+8 * Updated changelog to go with changes. :)silby2004-08-051-0/+14 * Orlando's latest changes (see changelog file for details.)silby2004-08-052-5/+5 * Latest update from Orlando Bassotto, includes bettersilby2004-07-0813-139/+473 * Fix a comparison that was giving false "you need a patch" messagessilby2004-06-241-1/+1 * Update to keep up with the recent dev_t change in -current. No need forsilby2004-06-242-13/+62 * Renamed etc/rc.d/vmware.sh into etc/rc.d/001.vmware.sh to make sureedwin2004-06-123-5/+5 * SIZEify (maintainer timeout)trevor2004-03-311-0/+3 * Add a missing comma which was breaking compilation on 5.x < 502103silby2004-03-191-1/+1 * A slew of changes to allow vmware3 to work on 5.x with dynamic devicesilby2004-03-147-82/+48 * Fix the cdev patch to work correctly with FreeBSD4. One check hasmbr2004-03-032-14/+11 * Portepoch should never be decreased.mbr2004-02-291-0/+1 * Add patch for new cdevsw changes and make vmware working againmbr2004-02-292-2/+75 * Bump the port revision to note the vm_page_alloc_contig -> contigallocsilby2004-01-221-1/+1 * Update the kernel module to use contigmalloc instead of the now obsoletesilby2004-01-221-0/+12 * Make the linprocfs check succeed if linprocfs is already mounted, andsilby2004-01-221-2/+2 * Substitute BROKEN with IGNORE in cases where the port requires the src treemarcus2004-01-101-3/+3 * Fix build on 4.x.fjoe2003-11-182-57/+70 * vmware3 was broken on -current due to kernel changes.mr2003-11-182-3/+3 * kern.ipc.shm_allow_removed was MFC'ed.fjoe2003-11-111-1/+1 * Patch for FreeBSD 4.x was updated (now Power On always works as expected).fjoe2003-11-052-1/+15 * Finally fix problems with libdir: install vmware3 files to correct locationfjoe2003-11-043-337/+336 * Compensate a versioning mistake with a PORTEPOCH bump, since this portknu2003-10-231-0/+1 * PORTREVISION may not contain a hyphen.knu2003-10-231-4/+4 * Port to FreeBSD 4.x.fjoe2003-10-233-8/+724 * Restore loop.fullpath and libdir fixes.fjoe2003-10-221-2/+2 * Libdir points to other directory.fjoe2003-10-211-2/+2 * Upgrade to portrevision 2242 and make it possible to runmbr2003-10-213-16/+16 * Add ftp:// so fenner's "Distfiles survey" does not failfjoe2003-10-211-1/+1