node_get_string(const xmlNode *string_node, utf8char **str)
{
xmlNode *child;
- char *p = NULL;
+ utf8char *p = NULL;
for_node_child(string_node, child) {
if (node_is_text(child) && child->content) {
return ret;
}
-/* Prints the information contained in a `struct windows_info'.
+/* Prints the information contained in a `struct windows_info'.
*
* Warning: any strings printed here are in UTF-8 encoding. If the locale
* character encoding is not UTF-8, the printed strings may be garbled. */
print_image_info(const struct wim_info *wim_info, int image)
{
const struct image_info *image_info;
- const char *desc;
+ const utf8char *desc;
char buf[50];
wimlib_assert(image >= 1 && image <= wim_info->num_images);
WIMLIBAPI int
wimlib_set_image_flags(WIMStruct *w, int image, const utf8char *flags)
{
- char *p;
+ utf8char *p;
if (image < 1 || image > w->hdr.image_count) {
ERROR("%d is not a valid image", image);