diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utf8.c | 5 | ||||
-rw-r--r-- | utils/utf8.h | 5 |
2 files changed, 3 insertions, 7 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; diff --git a/utils/utf8.h b/utils/utf8.h index 7c450b5c3..7509dde52 100644 --- a/utils/utf8.h +++ b/utils/utf8.h @@ -161,9 +161,4 @@ bool utf8_save_text(const char *utf8_text, const char *path); */ nserror utf8_finalise(void); -/* These two are platform specific */ -nserror utf8_to_local_encoding(const char *string, size_t len, char **result); -nserror utf8_from_local_encoding(const char *string, size_t len, char **result); - - #endif |