Closes #18. Change to char32_t everywhere; builds fine, behaviour as before.
This commit is contained in:
parent
812a1be7d9
commit
c59825d7fe
33 changed files with 116 additions and 76 deletions
|
|
@ -7,7 +7,7 @@ int main( int argc, char *argv[] ) {
|
|||
fwide( stdin, 1 );
|
||||
fwide( stdout, 1 );
|
||||
|
||||
for (wchar_t c = fgetwc( stdin ); !feof( stdin); c = fgetwc( stdin )) {
|
||||
for (char32_t c = fgetwc( stdin ); !feof( stdin); c = fgetwc( stdin )) {
|
||||
if (c != '\n') {
|
||||
fwprintf( stdout, L"Read character %d, %C\t", (int)c, c);
|
||||
fputwc( c, stdout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue