+2005-10-09 Bruno Haible <bruno@clisp.org>
+2002-07-24 Ulrich Drepper <drepper@redhat.com>
+
+ * explodename.c (_nl_explode_name): Simplify.
+
2005-10-09 Bruno Haible <bruno@clisp.org>
2002-07-24 Ulrich Drepper <drepper@redhat.com>
cp[0] = '\0';
*modifier = ++cp;
- mask |= XPG_MODIFIER;
+ if (cp[0] != '\0')
+ mask |= XPG_MODIFIER;
}
if (*territory != NULL && (*territory)[0] == '\0')
if (*codeset != NULL && (*codeset)[0] == '\0')
mask &= ~XPG_CODESET;
- if (*modifier != NULL && (*modifier)[0] == '\0')
- mask &= ~XPG_MODIFIER;
-
return mask;
}