Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > openwatcom.users.c_cpp > #3577
| From | Paul S Person <psperson1@ix.netcom.invalid> |
|---|---|
| Newsgroups | openwatcom.users.c_cpp |
| Subject | Re: OpenWatcom v1.9 for Linux vs. unicode |
| Date | 2019-05-31 09:36 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <4gl2fe9inld1hfgv3dsll6ssecvf9blpf1@4ax.com> (permalink) |
| References | <fa29b59c-25f6-475e-bc9e-9ae723b71fbf@googlegroups.com> |
On Thu, 30 May 2019 15:48:37 -0700 (PDT), ed_davis2@yahoo.com wrote:
>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!
The OpenWatcom C/C++ User's Guide actually has a sectiom named
"Double-Byte/Unicode Characters", although it's not in the index (for
the HTMLHelp version anyway). I found it by finding "exception" in the
index, selecting "C++ Exception Handling", and pressing "Next" enough
times. This can also be found from the Menu, under compiler options
and the the "full description" part.
The compiler options listed are
zk{0,1,2,l}
zk0u
zku=<codepage>
perhaps one or another of them would help.
--
"I begin to envy Petronius."
"I have envied him long since."
Back to openwatcom.users.c_cpp | Previous | Next — Previous in thread | Find similar
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