mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Update.
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:
parent
a99bfa85d8
commit
d2afebcce4
@ -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>
|
2002-07-02 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
|
* sysdeps/mips/atomicity.h: Don't include <sgidefs.h>. Always
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Test of the gettext functions.
|
/* 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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 2000.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 2000.
|
||||||
|
|
||||||
@ -235,7 +235,9 @@ positive_gettext_test (void)
|
|||||||
{
|
{
|
||||||
const char *found = gettext (msgs[cnt].msgid);
|
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. */
|
/* Oops, shouldn't happen. */
|
||||||
printf ("\
|
printf ("\
|
||||||
@ -281,7 +283,9 @@ positive_dgettext_test (const char *domain)
|
|||||||
{
|
{
|
||||||
const char *found = dgettext (domain, msgs[cnt].msgid);
|
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. */
|
/* Oops, shouldn't happen. */
|
||||||
printf ("\
|
printf ("\
|
||||||
@ -305,7 +309,9 @@ positive_dcgettext_test (const char *domain, int category)
|
|||||||
{
|
{
|
||||||
const char *found = dcgettext (domain, msgs[cnt].msgid, 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. */
|
/* Oops, shouldn't happen. */
|
||||||
printf ("\
|
printf ("\
|
||||||
|
@ -49,9 +49,9 @@ test -d ${objpfx}localedir/existing-locale/LC_MESSAGES || {
|
|||||||
|
|
||||||
# Populate them.
|
# Populate them.
|
||||||
msgfmt -o ${objpfx}domaindir/existing-locale/LC_MESSAGES/existing-domain.mo \
|
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 \
|
msgfmt -o ${objpfx}domaindir/existing-locale/LC_TIME/existing-time-domain.mo \
|
||||||
../po/de.po
|
-f ../po/de.po
|
||||||
|
|
||||||
GCONV_PATH=${common_objpfx}iconvdata
|
GCONV_PATH=${common_objpfx}iconvdata
|
||||||
export GCONV_PATH
|
export GCONV_PATH
|
||||||
|
@ -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>
|
2002-07-14 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* td_ta_map_id2thr.c: Begin fixing implementation for libpthread with
|
* td_ta_map_id2thr.c: Begin fixing implementation for libpthread with
|
||||||
|
@ -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. */
|
p_userstack but this should not be necessary here. */
|
||||||
|
|
||||||
th.th_ta_p = (td_thragent_t *) ta;
|
th.th_ta_p = (td_thragent_t *) ta;
|
||||||
th.th_unique = &pds;
|
th.th_unique = NULL;
|
||||||
if (callback (&th, cbdata_p) != 0)
|
if (callback (&th, cbdata_p) != 0)
|
||||||
return TD_DBERR;
|
return TD_DBERR;
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ td_thr_event_enable (th, onoff)
|
|||||||
LOG ("td_thr_event_enable");
|
LOG ("td_thr_event_enable");
|
||||||
|
|
||||||
/* Write the new value into the thread data structure. */
|
/* Write the new value into the thread data structure. */
|
||||||
|
if (th->th_unique != NULL)
|
||||||
if (ps_pdwrite (th->th_ta_p->ph,
|
if (ps_pdwrite (th->th_ta_p->ph,
|
||||||
((char *) th->th_unique
|
((char *) th->th_unique
|
||||||
+ offsetof (struct _pthread_descr_struct, p_report_events)),
|
+ offsetof (struct _pthread_descr_struct, p_report_events)),
|
||||||
|
@ -28,6 +28,12 @@ td_thr_getfpregs (const td_thrhandle_t *th, prfpregset_t *regset)
|
|||||||
|
|
||||||
LOG ("td_thr_getfpregs");
|
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. */
|
/* We have to get the state and the PID for this thread. */
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
||||||
sizeof (struct _pthread_descr_struct)) != PS_OK)
|
sizeof (struct _pthread_descr_struct)) != PS_OK)
|
||||||
|
@ -28,6 +28,13 @@ td_thr_getgregs (const td_thrhandle_t *th, prgregset_t gregs)
|
|||||||
|
|
||||||
LOG ("td_thr_getgregs");
|
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. */
|
/* We have to get the state and the PID for this thread. */
|
||||||
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
if (ps_pdread (th->th_ta_p->ph, th->th_unique, &pds,
|
||||||
sizeof (struct _pthread_descr_struct)) != PS_OK)
|
sizeof (struct _pthread_descr_struct)) != PS_OK)
|
||||||
|
Loading…
Reference in New Issue
Block a user