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

X-Received by 2002:a24:3d48:: with SMTP id n69mr3343268itn.116.1559256517871; Thu, 30 May 2019 15:48:37 -0700 (PDT)
X-Received by 2002:a9d:7d96:: with SMTP id j22mr4677929otn.23.1559256517709; Thu, 30 May 2019 15:48:37 -0700 (PDT)
Path csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!i64no473778iti.0!news-out.google.com!p73ni211itp.0!nntp.google.com!i64no473775iti.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups openwatcom.users.c_cpp
Date Thu, 30 May 2019 15:48:37 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=71.204.102.30; posting-account=6OqJlAkAAADnRrvH8wmHSI7han_Z_0ee
NNTP-Posting-Host 71.204.102.30
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <fa29b59c-25f6-475e-bc9e-9ae723b71fbf@googlegroups.com> (permalink)
Subject OpenWatcom v1.9 for Linux vs. unicode
From ed_davis2@yahoo.com
Injection-Date Thu, 30 May 2019 22:48:37 +0000
Content-Type text/plain; charset="UTF-8"
Lines 16
Xref csiph.com openwatcom.users.c_cpp:3576

Show key headers only | 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