2002-07-15  Ulrich Drepper  <drepper@redhat.com>

	* intl/tst-gettext.sh: Pass -f option to msgfmt.
	* intl/tst-gettext.c: Correctly handle untranslated messages in
	positive tests.

	* po/de.po: Update from translation team.
This commit is contained in:
Ulrich Drepper 2002-07-16 04:56:00 +00:00
parent a99bfa85d8
commit d2afebcce4
9 changed files with 2590 additions and 1582 deletions

View File

@ -1,3 +1,11 @@
2002-07-15 Ulrich Drepper <drepper@redhat.com>
* intl/tst-gettext.sh: Pass -f option to msgfmt.
* intl/tst-gettext.c: Correctly handle untranslated messages in
positive tests.
* po/de.po: Update from translation team.
2002-07-02 H.J. Lu <hjl@gnu.org>
* sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always

View File

@ -1,5 +1,5 @@
/* Test of the gettext functions.
Copyright (C) 2000 Free Software Foundation, Inc.
Copyright (C) 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 2000.
@ -235,7 +235,9 @@ positive_gettext_test (void)
{
const char *found = gettext (msgs[cnt].msgid);
if (found == NULL || strcmp (found, msgs[cnt].msgstr) != 0)
if (found == NULL
|| (msgs[cnt].msgstr[0] != '\0'
&& strcmp (found, msgs[cnt].msgstr) != 0))
{
/* Oops, shouldn't happen. */
printf ("\
@ -281,7 +283,9 @@ positive_dgettext_test (const char *domain)
{
const char *found = dgettext (domain, msgs[cnt].msgid);
if (found == NULL || strcmp (found, msgs[cnt].msgstr) != 0)
if (found == NULL
|| (msgs[cnt].msgstr[0] != '\0'
&& strcmp (found, msgs[cnt].msgstr) != 0))
{
/* Oops, shouldn't happen. */
printf ("\
@ -305,7 +309,9 @@ positive_dcgettext_test (const char *domain, int category)
{
const char *found = dcgettext (domain, msgs[cnt].msgid, category);
if (found == NULL || strcmp (found, msgs[cnt].msgstr) != 0)
if (found == NULL
|| (msgs[cnt].msgstr[0] != '\0'
&& strcmp (found, msgs[cnt].msgstr) != 0))
{
/* Oops, shouldn't happen. */
printf ("\

View File

@ -49,9 +49,9 @@ test -d ${objpfx}localedir/existing-locale/LC_MESSAGES || {
# Populate them.
msgfmt -o ${objpfx}domaindir/existing-locale/LC_MESSAGES/existing-domain.mo \
../po/de.po
-f ../po/de.po
msgfmt -o ${objpfx}domaindir/existing-locale/LC_TIME/existing-time-domain.mo \
../po/de.po
-f ../po/de.po
GCONV_PATH=${common_objpfx}iconvdata
export GCONV_PATH

View File

@ -1,3 +1,11 @@
2002-07-15 Ulrich Drepper <drepper@redhat.com>
* td_ta_thr_iter.c: Some more changes to enable using TLS-enabled
libpthread.
* td_thr_event_enable.c: Likewise.
* td_thr_getfpregs.c: Likewise.
* td_thr_getgregs.c: Likewise.
2002-07-14 Ulrich Drepper <drepper@redhat.com>
* td_ta_map_id2thr.c: Begin fixing implementation for libpthread with

View File

@ -47,7 +47,7 @@ handle_descr (const td_thragent_t *ta, td_thr_iter_f *callback,
p_userstack but this should not be necessary here. */
th.th_ta_p = (td_thragent_t *) ta;
th.th_unique = &pds;
th.th_unique = NULL;
if (callback (&th, cbdata_p) != 0)
return TD_DBERR;

View File

@ -31,6 +31,7 @@ td_thr_event_enable (th, onoff)
LOG ("td_thr_event_enable");
/* Write the new value into the thread data structure. */
if (th->th_unique != NULL)
if (ps_pdwrite (th->th_ta_p->ph,
((char *) th->th_unique
+ offsetof (struct _pthread_descr_struct, p_report_events)),

View File

@ -28,6 +28,12 @@ td_thr_getfpregs (const td_thrhandle_t *th, prfpregset_t *regset)
LOG ("td_thr_getfpregs");
if (th->th_unique == NULL)
{
memset (regset, '\0', sizeof (*regset));
return TD_OK;
}
/* We have to get the state and the PID for this thread. */
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
sizeof (struct _pthread_descr_struct)) != PS_OK)

View File

@ -28,6 +28,13 @@ td_thr_getgregs (const td_thrhandle_t *th, prgregset_t gregs)
LOG ("td_thr_getgregs");
if (th->th_unique == NULL)
{
/* No data yet. */
memset (gregs, '\0', sizeof (prgregset_t));
return TD_OK;
}
/* We have to get the state and the PID for this thread. */
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
sizeof (struct _pthread_descr_struct)) != PS_OK)

4122
po/de.po

File diff suppressed because it is too large Load Diff