From f85219774e6acf3698a74fe99ea6083fb4d9dc98 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Sat, 17 Jun 2006 05:37:42 -0500 Subject: [PATCH] Use g_utf8_validate --- moo/mooutils/xdgmime/xdgmimeint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moo/mooutils/xdgmime/xdgmimeint.c b/moo/mooutils/xdgmime/xdgmimeint.c index 4a0ac4cc..6bdca03f 100644 --- a/moo/mooutils/xdgmime/xdgmimeint.c +++ b/moo/mooutils/xdgmime/xdgmimeint.c @@ -32,6 +32,7 @@ #include "xdgmimeint.h" #include #include +#include #ifndef FALSE #define FALSE (0) @@ -133,8 +134,7 @@ _xdg_ucs4_to_lower (xdg_unichar_t source) int _xdg_utf8_validate (const char *source) { - /* FIXME: actually write */ - return TRUE; + return g_utf8_validate (source, -1, NULL); } const char *