repo.or.cz
/
glibc
/
history.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(_IO_new_file_close_it): Call _IO_set[bgp] even for wide streams.
[glibc/history.git]
/
stdio-common
/
bug15.c
blob
825ca2f9801f181936d0582350b891ca64fc2489
1
#include <stdio.h>
2
#include <locale.h>
3
4
int
5
main
(
void
)
6
{
7
char
buf
[
10
];
8
setlocale
(
LC_ALL
,
"vi_VN.TCVN-5712"
);
9
return
sprintf
(
buf
,
"%.*s"
,
2
,
"vi"
) !=
2
;
10
}