Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > openwatcom.users.c_cpp > #3576

OpenWatcom v1.9 for Linux vs. unicode

Newsgroups openwatcom.users.c_cpp
Date 2019-05-30 15:48 -0700
Message-ID <fa29b59c-25f6-475e-bc9e-9ae723b71fbf@googlegroups.com> (permalink)
Subject OpenWatcom v1.9 for Linux vs. unicode
From ed_davis2@yahoo.com

Show all headers | View raw


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!

Back to openwatcom.users.c_cpp | Previous | NextNext in thread | Find similar


Thread

OpenWatcom v1.9 for Linux vs. unicode ed_davis2@yahoo.com - 2019-05-30 15:48 -0700
  Re: OpenWatcom v1.9 for Linux vs. unicode Paul S Person <psperson1@ix.netcom.invalid> - 2019-05-31 09:36 -0700

csiph-web