mirror of git://sourceware.org/git/glibc.git
* intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
returning.
This commit is contained in:
parent
82c261269b
commit
7f4dce05c2
|
|
@ -1,3 +1,8 @@
|
||||||
|
2002-09-19 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
|
* intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
|
||||||
|
returning.
|
||||||
|
|
||||||
2002-09-17 Bruno Haible <bruno@clisp.org>
|
2002-09-17 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
* sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
|
* sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
|
||||||
|
|
|
||||||
|
|
@ -597,7 +597,6 @@ DCIGETTEXT (domainname, msgid1, msgid2, plural, n, category)
|
||||||
/* Found the translation of MSGID1 in domain DOMAIN:
|
/* Found the translation of MSGID1 in domain DOMAIN:
|
||||||
starting at RETVAL, RETLEN bytes. */
|
starting at RETVAL, RETLEN bytes. */
|
||||||
FREE_BLOCKS (block_list);
|
FREE_BLOCKS (block_list);
|
||||||
__set_errno (saved_errno);
|
|
||||||
#if defined HAVE_TSEARCH || defined _LIBC
|
#if defined HAVE_TSEARCH || defined _LIBC
|
||||||
if (foundp == NULL)
|
if (foundp == NULL)
|
||||||
{
|
{
|
||||||
|
|
@ -636,6 +635,8 @@ DCIGETTEXT (domainname, msgid1, msgid2, plural, n, category)
|
||||||
(*foundp)->translation_length = retlen;
|
(*foundp)->translation_length = retlen;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
__set_errno (saved_errno);
|
||||||
|
|
||||||
/* Now deal with plural. */
|
/* Now deal with plural. */
|
||||||
if (plural)
|
if (plural)
|
||||||
retval = plural_lookup (domain, n, retval, retlen);
|
retval = plural_lookup (domain, n, retval, retlen);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue