e***@yahoo.com
2019-05-30 22:48:37 UTC
Using OpenWatcom v1.9 for Linux, how do I print unicode characters to a terminal (xterm)? Using gcc 4.8.2 on Ubuntu, the following works:
#include <stdio.h>
int main() {
printf("hello, world\n");
printf("\u2500\u2501\u25b6\u25ba\u27a4\n");
return 0;
}
Printing: hello, world Then some unicode characters on the next line.
But when I use OW v1.9, it just prints:
hello, world u2500u2501
Thanks for any help!
#include <stdio.h>
int main() {
printf("hello, world\n");
printf("\u2500\u2501\u25b6\u25ba\u27a4\n");
return 0;
}
Printing: hello, world Then some unicode characters on the next line.
But when I use OW v1.9, it just prints:
hello, world u2500u2501
Thanks for any help!