Quick fix to convert helphints to correct charset

We should probably have our own strings for these
This commit is contained in:
Chris Young 2018-09-27 00:18:14 +01:00
parent b097455772
commit dfc8f5aef4
2 changed files with 5 additions and 3 deletions

View File

@ -4688,7 +4688,7 @@ static void gui_window_destroy(struct gui_window *g)
free(g->shared->svbuffer);
for(gid = 0; gid < GID_LAST; gid++)
free(g->shared->helphints[gid]);
ami_utf8_free(g->shared->helphints[gid]);
ami_gui_win_list_remove(g->shared);
if(g->tab_node) {

View File

@ -237,7 +237,8 @@ static nserror amiga_path_to_nsurl(const char *path, struct nsurl **url_out)
}
/**
* returns a string with escape chars translated.
* returns a string with escape chars translated
* and string converted to local charset
* (based on remove_underscores from utils.c)
*/
@ -259,7 +260,8 @@ char *translate_escape_chars(const char *s)
}
}
ret[ii] = '\0';
return ret;
return ami_utf8_easy(ret);
}
/**