Fix ungetwc for multi byte chars
This commit is contained in:
committed by
Jeremy Soller
parent
2c7ec0dc8e
commit
3d2dd71b8b
@@ -103,6 +103,7 @@ EXPECT_NAMES=\
|
||||
unistd/swab \
|
||||
unistd/write \
|
||||
waitpid \
|
||||
wchar/fgetwc \
|
||||
wchar/fwide \
|
||||
wchar/mbrtowc \
|
||||
wchar/mbsrtowcs \
|
||||
|
||||
@@ -3,9 +3,11 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <locale.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
setlocale(LC_ALL, "");
|
||||
FILE *stream;
|
||||
wint_t wc;
|
||||
wint_t wc2;
|
||||
|
||||
@@ -1 +1 @@
|
||||
123A
|
||||
123çA
|
||||
Reference in New Issue
Block a user