From 886a3106db6d6a60d2d706d2caad3e883dd70b14 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 1 Feb 2014 22:17:36 +0000 Subject: move utf8 local conversion operations to table --- atari/encoding.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'atari/encoding.c') diff --git a/atari/encoding.c b/atari/encoding.c index 626f57ae8..f57a3d770 100644 --- a/atari/encoding.c +++ b/atari/encoding.c @@ -67,3 +67,9 @@ int atari_to_ucs4(unsigned char atari) } +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 *atari_utf8_table = &utf8_table; -- cgit v1.2.3