diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-02-01 22:17:36 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-02-01 22:17:36 +0000 |
commit | 886a3106db6d6a60d2d706d2caad3e883dd70b14 (patch) | |
tree | 0fcd0fb9c8821f06d47e7e20e8c796e085e8aa2b /utils/utf8.c | |
parent | 427f127fa9d42cdf9005d06813c580d18d5e0d6a (diff) | |
download | netsurf-886a3106db6d6a60d2d706d2caad3e883dd70b14.tar.gz netsurf-886a3106db6d6a60d2d706d2caad3e883dd70b14.tar.bz2 |
move utf8 local conversion operations to table
Diffstat (limited to 'utils/utf8.c')
-rw-r--r-- | utils/utf8.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/utf8.c b/utils/utf8.c index ab7bbae06..cc8039c85 100644 --- a/utils/utf8.c +++ b/utils/utf8.c @@ -29,6 +29,8 @@ #include <parserutils/charset/utf8.h> +#include "desktop/gui_factory.h" + #include "utils/config.h" #include "utils/log.h" #include "utils/utf8.h" @@ -463,8 +465,7 @@ bool utf8_save_text(const char *utf8_text, const char *path) char *conv; FILE *out; - ret = utf8_to_local_encoding(utf8_text, strlen(utf8_text), &conv); - + ret = guit->utf8->utf8_to_local(utf8_text, strlen(utf8_text), &conv); if (ret != NSERROR_OK) { LOG(("failed to convert to local encoding, return %d", ret)); return false; |