Parent Directory
|
Revision Log
|
Patch
revision 1 by twoaday, Fri Mar 24 13:36:54 2006 UTC | revision 10 by twoaday, Mon Mar 27 12:47:50 2006 UTC | |
---|---|---|
# | Line 42 utf8_to_native (const char *string) | Line 42 utf8_to_native (const char *string) |
42 | if (n < 0) | if (n < 0) |
43 | return NULL; | return NULL; |
44 | ||
45 | result = (wchar_t*)malloc ((n+1) * sizeof *result); | result = (wchar_t*)xcalloc (1, (n+1) * sizeof *result); |
if (!result) | ||
abort (); | ||
46 | ||
47 | n = MultiByteToWideChar (CP_UTF8, 0, string, -1, result, n); | n = MultiByteToWideChar (CP_UTF8, 0, string, -1, result, n); |
48 | if (n < 0) { | if (n < 0) { |
|
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |