summaryrefslogtreecommitdiff
path: root/riscos/ucstables.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/ucstables.c')
-rw-r--r--riscos/ucstables.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/riscos/ucstables.c b/riscos/ucstables.c
index b9f196df0..3b7f8a42b 100644
--- a/riscos/ucstables.c
+++ b/riscos/ucstables.c
@@ -31,6 +31,7 @@
#include "utils/log.h"
#include "utils/utf8.h"
#include "utils/utils.h"
+#include "desktop/gui.h"
/* Common values (ASCII) */
#define common \
@@ -684,3 +685,10 @@ nserror utf8_from_local_encoding(const char *string, size_t len, char **result)
return NSERROR_OK;
}
+
+static struct gui_utf8_table utf8_table = {
+ .utf8_to_local = utf8_to_local_encoding,
+ .local_to_utf8 = utf8_from_local_encoding,
+};
+
+struct gui_utf8_table *riscos_utf8_table = &utf8_table;