diff options
-rw-r--r-- | src/util.c | 8 | ||||
-rw-r--r-- | src/util.h | 1 |
2 files changed, 9 insertions, 0 deletions
@@ -389,3 +389,11 @@ verify_xpg_locale (const char *locale) { return (explode_locale (locale, NULL, NULL, NULL, NULL) & COMPONENT_LANGUAGE); } + +gboolean +verify_locale (const char *locale) +{ + if (locale && *locale == '\0') + return TRUE; + return verify_xpg_locale (locale); +} @@ -44,6 +44,7 @@ gint get_user_groups (const gchar *username, gid_t **groups); gboolean verify_xpg_locale (const char *locale); +gboolean verify_locale (const char *locale); G_END_DECLS |