diff options
Diffstat (limited to 'stdio-common/bug15.c')
-rw-r--r-- | stdio-common/bug15.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stdio-common/bug15.c b/stdio-common/bug15.c new file mode 100644 index 0000000000..825ca2f980 --- /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; +} |