From 2e22fed281f68a7db181f6cfce125b65a9b05e86 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 14 Dec 2001 07:26:22 +0000 Subject: [PATCH] Update. * libio/tst_swprintf.c (main): Add test for string argument with zero precision. --- ChangeLog | 2 ++ libio/tst_swprintf.c | 20 ++++++++++++++++++-- linuxthreads/ChangeLog | 8 ++++++-- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 84e5ebd..aaca509 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2001-12-13 Ulrich Drepper + * libio/tst_swprintf.c (main): Add test for string argument with + zero precision. * stdio-common/Makefile (tests): Add tst-sprintf. * stdio-common/tst-sprintf.c: New file. diff --git a/libio/tst_swprintf.c b/libio/tst_swprintf.c index dc16db0..a82ef88 100644 --- a/libio/tst_swprintf.c +++ b/libio/tst_swprintf.c @@ -68,8 +68,24 @@ main (int argc, char *argv[]) result = 1; } else - printf ("swprintf (buf, %Zu, L\"%%s\", \"%s\") OK\n", - tests[n].n, tests[n].str); + printf ("swprintf (buf, %Zu, L\"%%s\", \"%s\") OK\n", + tests[n].n, tests[n].str); + } + + if (swprintf (buf, nbuf, L"%.0s", "foo") != 0 + || wcslen (buf) != 0) + { + printf ("swprintf (buf, %Zu, L\"%%.0s\", \"foo\") create some output\n", + nbuf); + result = 1; + } + + if (swprintf (buf, nbuf, L"%.0ls", L"foo") != 0 + || wcslen (buf) != 0) + { + printf ("swprintf (buf, %Zu, L\"%%.0ls\", L\"foo\") create some output\n", + nbuf); + result = 1; } return result; diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 82472b5..a926600 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,8 @@ +2001-12-13 Andreas Schwab + + * specific.c (pthread_key_delete): Don't contact the thread + manager if no threads have been created yet. + 2001-12-12 NIIBE Yutaka * sysdeps/sh/pt-machine.h (INIT_THREAD_SELF): Added __volatile__ @@ -15,8 +20,7 @@ 2001-11-29 Andreas Jaeger - * sysdeps/x86_64/pt-machine.h: Use %gs as thread specific - register. + * sysdeps/x86_64/pt-machine.h: Use %gs as thread specific register. (THREAD_SELF): New. (INIT_THREAD_SELF): New. (THREAD_GETMEM): New. -- 2.7.4