summaryrefslogtreecommitdiff
path: root/riscos/ucstables.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-02-01 22:17:36 +0000
committerVincent Sanders <vince@kyllikki.org>2014-02-01 22:17:36 +0000
commit886a3106db6d6a60d2d706d2caad3e883dd70b14 (patch)
tree0fcd0fb9c8821f06d47e7e20e8c796e085e8aa2b /riscos/ucstables.c
parent427f127fa9d42cdf9005d06813c580d18d5e0d6a (diff)
downloadnetsurf-886a3106db6d6a60d2d706d2caad3e883dd70b14.tar.gz
netsurf-886a3106db6d6a60d2d706d2caad3e883dd70b14.tar.bz2
move utf8 local conversion operations to table
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;