+2007-10-14 Bruno Haible <bruno@clisp.org>
+
+ * dcigettext.c (DCIGETTEXT): Save errno also around the tfind() call.
+ Needed because Interix 3.5 tfind() clobbers errno.
+ Reported by Martin Koeppe <mkoeppe@gmx.de>.
+
2007-10-13 Bruno Haible <bruno@clisp.org>
* gettextP.h: Include <bits/libc-lock.h> or lock.h.
needed to internationalize own packages. It provides functions
which allow to use the X/Open catgets function with an interface
like the Uniforum gettext function. For system which does not
- have neither of those a complete implementation is provided.
+ have neither of those a complete implementation is provided.
\ No newline at end of file
: n == 1 ? (char *) msgid1 : (char *) msgid2);
#endif
+ /* Preserve the `errno' value. */
+ saved_errno = errno;
+
gl_rwlock_rdlock (_nl_state_lock);
/* If DOMAINNAME is NULL, we are interested in the default domain. If
retval = (char *) (*foundp)->translation;
gl_rwlock_unlock (_nl_state_lock);
+ errno = saved_errno;
return retval;
}
#endif
- /* Preserve the `errno' value. */
- saved_errno = errno;
-
/* See whether this is a SUID binary or not. */
DETERMINE_SECURE;