🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3881

Re: EUC<->Unicode (Curses woes on Solaris)

#3881
From: Stephen Baynes
Date: Thu, 20 Dec 2001 13:04
29 lines
2847 bytes
Paul Gorodyansky wrote:
> 
> Paul Gorodyansky wrote:
> >...
> > on a Web page (cannot find URL now) of Sun documentation where they said
> > that their C run-time library's
> >   wchar
> > is NOT Unicode, it's Sun's proprietary implementation.
> 
> By the way, can anybody answer how people write Unicode-enabled
> programs in C/C++ under Solaris if wchar there is not Unicode?
> 
> Solaris 8 claims to fully support Unicode, I cna even choose UTF-8
> as a locale but what does it really means if C/C++ do NOT support
> Unicode there???

I don't know - but I guess that if you set UTF-8 as your locales
character set - then it will correctly convert to / from UTF-8 as
a multi byte character set to Sun's (not unicode) wchar encoding.

Note also that the C standard allows the encoding of wide characters
to be locale specific. So in a UTF-8 locale it could be UNICODE and
in a Japanise locale it could be something completely different.

-- 
Stephen Baynes    CEng  MBCS                Stephen.Baynes@soton.sc.philips.com
Philips Semiconductors Ltd                  
Southampton SO15 0DJ                        +44 (0)23 80316431
United Kingdom                              My views are my own.
Technical Details
Message-ID: <3C21E1EF.EFDADFF0@soton.sc.philips.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!freenix!skynet.be!skynet.be!news1.ebone.net!news.ebone.net!lnewspeer00.lnd.ops.eu.uu.net!lnewspost00.lnd.ops.eu.uu.net!emea.uu.net!read-nat.news.uk.uu.net!not-for-mail
References: <59bfe011.0112181155.77a73800@posting.google.com> <3C213653.A869531E@compuserve.com> <3C213828.435D6692@compuserve.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8c9b,4ecdeed075c19330
X-Google-Attributes: gidf8c9b,public
X-Google-Thread: f6653,4ecdeed075c19330
X-Google-Attributes: gidf6653,public
X-Google-Thread: fc89c,4ecdeed075c19330
X-Google-Attributes: gidfc89c,public
X-Google-Thread: fb9a0,4ecdeed075c19330
X-Google-Attributes: gidfb9a0,public
X-Google-Thread: 10204d,4ecdeed075c19330
X-Google-Attributes: gid10204d,public
X-Google-ArrivalTime: 2001-12-20 05:20:39 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!freenix!skynet.be!skynet.be!news1.ebone.net!news.ebone.net!lnewspeer00.lnd.ops.eu.uu.net!lnewspost00.lnd.ops.eu.uu.net!emea.uu.net!read-nat.news.uk.uu.net!not-for-mail
Message-ID: <3C21E1EF.EFDADFF0@soton.sc.philips.com>
Date: Thu, 20 Dec 2001 13:04:47 +0000
From: Stephen Baynes <stephen.baynes@soton.sc.philips.com>
Organization: Philips Semiconductors
X-Mailer: Mozilla 4.51 [en] (X11; I; HP-UX B.11.00 9000/785)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.unix.programmer,comp.sys.sun.misc,comp.unix.questions,japan.comp.sun,comp.software.international
Subject: Re: EUC<->Unicode (Curses woes on Solaris)
References: <59bfe011.0112181155.77a73800@posting.google.com> <3C213653.A869531E@compuserve.com> <3C213828.435D6692@compuserve.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 29
NNTP-Posting-Host: gw-cro01.pgb.philips.com
X-Trace: 1008853515 read-nat.news.uk.uu.net 9444 194.201.166.113
X-Complaints-To: abuse@uk.uu.net