projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2003-02-02 Piers Haken <piersh@friskit.com>
[mono.git]
/
mono
/
io-layer
/
unicode.c
1
/*
2
* unicode.c: unicode conversion
3
*
4
* Author:
5
* Dick Porter (dick@ximian.com)
6
*
7
* (C) 2002 Ximian, Inc.
8
*/
9
10
#include <config.h>
11
#include <glib.h>
12
#include <pthread.h>
13
#include <errno.h>
14
15
#include "mono/io-layer/wapi.h"
16
#include "unicode.h"
17
18
gchar *_wapi_unicode_to_utf8(const gunichar2 *uni)
19
{
20
GError *error = NULL;
21
gchar *res;
22
23
res = g_utf16_to_utf8 (uni, -1, NULL, NULL, &error);
24
25
g_assert (!error);
26
27
return res;
28
}