aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-01-30 20:26:38 +0000
committerUlrich Drepper <drepper@redhat.com>2003-01-30 20:26:38 +0000
commit7ba7c8291adc5ee95b9e5d8715ed3dc747abd024 (patch)
tree4fd53ff820b126d0ec57988aec457d336f1142a1 /stdio-common
parent886d5973b793fbb53705db7754ebfb93c1224d26 (diff)
downloadglibc-7ba7c8291adc5ee95b9e5d8715ed3dc747abd024.zip
glibc-7ba7c8291adc5ee95b9e5d8715ed3dc747abd024.tar.gz
glibc-7ba7c8291adc5ee95b9e5d8715ed3dc747abd024.tar.bz2
Update.
2003-01-30 Jakub Jelinek <jakub@redhat.com> * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel): Move to RESOLVE protected part of the header. * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel): Likewise. 2003-01-30 Ulrich Drepper <drepper@redhat.com> * stdio-common/Makefile (tests): Add bug15. (bug15-ENV): Define. * stdio-common/bug15.c: New file.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/Makefile3
-rw-r--r--stdio-common/bug15.c10
2 files changed, 12 insertions, 1 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index bfdef2b..35273f1 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -54,7 +54,7 @@ tests := tstscanf test_rdwr test-popen tstgetln test-fseek \
scanf1 scanf2 scanf3 scanf4 scanf5 scanf7 scanf8 scanf9 scanf10 \
scanf11 scanf12 tst-tmpnam tst-cookie tst-obprintf tst-sscanf \
tst-swprintf tst-fseek tst-fmemopen test-vfprintf tst-gets \
- tst-perror tst-sprintf tst-rndseek tst-fdopen tst-fphex bug14
+ tst-perror tst-sprintf tst-rndseek tst-fdopen tst-fphex bug14 bug15
test-srcs = tst-unbputc tst-printf
@@ -87,6 +87,7 @@ tst-sscanf-ENV = LOCPATH=$(common-objpfx)localedata
tst-swprintf-ENV = LOCPATH=$(common-objpfx)localedata
test-vfprintf-ENV = LOCPATH=$(common-objpfx)localedata
bug14-ENV = LOCPATH=$(common-objpfx)localedata
+bug15-ENV = LOCPATH=$(common-objpfx)localedata
ifneq (,$(filter %REENTRANT, $(defines)))
CPPFLAGS += -D_IO_MTSAFE_IO
diff --git a/stdio-common/bug15.c b/stdio-common/bug15.c
new file mode 100644
index 0000000..825ca2f
--- /dev/null
+++ b/stdio-common/bug15.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <locale.h>
+
+int
+main (void)
+{
+ char buf[10];
+ setlocale (LC_ALL, "vi_VN.TCVN-5712");
+ return sprintf (buf, "%.*s", 2, "vi") != 2;
+}