Initial handling of multi byte characters

Use mblen() to calculate the byte count for each character.
This commit is contained in:
Daniel Eklöf 2019-06-13 21:23:52 +02:00
parent e062ff7b97
commit 9f9949aeec
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 24 additions and 12 deletions

View file

@ -61,7 +61,7 @@ slave_spawn(int ptmx)
write(STDOUT_FILENO, "yeehaa", 6);
sleep(1);
write(STDOUT_FILENO, "\rXXX", 4);
write(STDOUT_FILENO, "\råäö", strlen("\råäö"));
sleep(1000);