Lines Matching full:error
89 GError *error = NULL;
117 ucs4_result = g_utf8_to_ucs4 (utf8, -1, NULL, NULL, &error);
119 if (!error || !g_error_matches (error, G_CONVERT_ERROR, G_CONVERT_ERROR_PARTIAL_INPUT))
124 g_clear_error (&error);
126 ucs4_result = g_utf8_to_ucs4 (utf8, -1, &items_read, NULL, &error);
142 ucs4_result = g_utf8_to_ucs4 (utf8, -1, &items_read, &items_written, &error);
145 fail ("line %d: conversion to ucs4 failed: %s\n", line, error->message);
168 utf8_result = g_ucs4_to_utf8 (ucs4_result, -1, &items_read, &items_written, &error);
171 fail ("line %d: conversion back to utf8 failed: %s", line, error->message);
233 if (!(utf16_from_utf8 = g_utf8_to_utf16 (utf8, -1, &items_read, &items_written, &error)))
235 fail ("line %d: conversion to ucs16 failed: %s\n", line, error->message);
242 fail ("line %d: length error in conversion to ucs16\n", line);
246 if (!(utf16_from_ucs4 = g_ucs4_to_utf16 (ucs4, -1, &items_read, &items_written, &error)))
248 fail ("line %d: conversion to ucs16 failed: %s\n", line, error->message);
255 fail ("line %d: length error in conversion to ucs16\n", line);
266 if (!(utf8_result = g_utf16_to_utf8 (utf16_from_utf8, -1, &items_read, &items_written, &error)))
268 fail ("line %d: conversion back to utf8 failed: %s\n", line, error->message);
275 fail ("line %d: length error in conversion from ucs16 to utf8\n", line);
279 if (!(ucs4_result = g_utf16_to_ucs4 (utf16_from_ucs4, -1, &items_read, &items_written, &error)))
288 fail ("line %d: length error in conversion from ucs16 to ucs4\n", line);
314 GError *error = NULL;
329 g_file_get_contents (testfile, &contents, NULL, &error);
330 if (error)
331 croak ("Cannot open utf8.txt: %s", error->message);