Article View: comp.unix.programmer
Article #3885Re: EUC<->Unicode (Curses woes on Solaris)
From: Paul Gorodyansky
Date: Mon, 24 Dec 2001 00:32
Date: Mon, 24 Dec 2001 00:32
52 lines
3583 bytes
3583 bytes
Hello! those who know me have no need of my name wrote: > > <3C22320B.E5838283@compuserve.com> divulged: > > >So, in our current code - despite the locale - wchar under Sun is always > >the same Sun's own form and under Windows it's UCS-2 - it does not matter > >where our Sun or Windows NT computer is a Japanese or a French one. > > in fact it is implementation defined. Exactly. >... why shouldn't it matter? because you shouldn't compare a wchar_t to > anything except a wchar_t. Exactly. I answered to this matter's question comparing wchar_t to wchar_t and not anything else - the above message guessed that _wchar_t_ is locale-dependent, and I answered that it's not, it's implementation dependent only. > > since i/o is usually locale dependent there is a potential for working > programs to fail, e.g., ``env LOCALE=ISO-8859-4 some_program | env > LOCALE=ISO-8859-1 another_program'' may not work as expected if the pipe > passes a u+0101. (some_program outputs an 0xe0 which another_program > believes is a latin small a with grave.) No, we were talking _only_ about wchar_t. Again, based on our software that works on Japanese, Polish (iso-8859-2), Latvian (iso-8859-4), etc. we see that wchar_t under Sun is always the same Sun's own form. > > all that said, i believe that most implementations will migrate to a ucs or > utf oriented encoding of the storage. ucs-2 and utf-8 both have strong > arguments -- pro and con -- so which is most likely still a little unclear. Unfortunately, I did not see any such plans for C compiler. Also, we are using HP-UX and AIX and I guess they also have their own implementation of wchar_t - we did not look though, because the fact that I can not send wchar_t to Java code on our main Unix platform - Solaris - was enough for us to cancel the original idea and we started sending 'native', non Unicode data to Java... -- Regards, Paul Gorodyansky "Cyrillic (Russian): instructions for Windows and Internet": http://ourworld.compuserve.com/homepages/PaulGor/
Technical Details
Message-ID:
<3C2677AE.F723F933@compuserve.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!1cust164.tnt2.sjc4.da.uu.NET!not-for-mailReferences:
<59bfe011.0112181155.77a73800@posting.google.com> <3C213653.A869531E@compuserve.com> <3C213828.435D6692@compuserve.com> <3C21E1EF.EFDADFF0@soton.sc.philips.com> <3C22320B.E5838283@compuserve.com> <a0125102ftm@enews1.newsguy.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: 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-Thread: f6653,4ecdeed075c19330 X-Google-Attributes: gidf6653,public X-Google-ArrivalTime: 2001-12-23 16:30:56 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!1cust164.tnt2.sjc4.da.uu.NET!not-for-mail From: Paul Gorodyansky <paulgor@compuserve.com> 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) Date: Sun, 23 Dec 2001 16:32:46 -0800 Lines: 52 Message-ID: <3C2677AE.F723F933@compuserve.com> References: <59bfe011.0112181155.77a73800@posting.google.com> <3C213653.A869531E@compuserve.com> <3C213828.435D6692@compuserve.com> <3C21E1EF.EFDADFF0@soton.sc.philips.com> <3C22320B.E5838283@compuserve.com> <a0125102ftm@enews1.newsguy.com> NNTP-Posting-Host: 1cust164.tnt2.sjc4.da.uu.net (63.42.63.164) Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1009153855 19752014 63.42.63.164 (16 [25072]) X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en,ru