*BSD News Article 61277


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!newsroom.utas.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!europa.chnt.gtegsc.com!gatech!newsfeed.internetmci.com!news.kei.com!nntp.coast.net!col.hp.com!sdd.hp.com!hamblin.math.byu.edu!park.uvsc.edu!usenet
From: Terry Lambert <terry@lambert.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: conflicting types for `wchar_t'
Date: 13 Feb 1996 00:55:15 GMT
Organization: Utah Valley State College, Orem, Utah
Lines: 30
Message-ID: <4fonhj$a4j@park.uvsc.edu>
References: <4eijt4$5sa@dali.cs.uni-magdeburg.de> <YTSUJI.96Jan31081138@suzuka.cfi.waseda.ac.jp>
NNTP-Posting-Host: hecate.artisoft.com

ytsuji@cfi.waseda.ac.jp (Dr Yoshimasa Tsuji) wrote:
]  If both wchar_t are the same thing, replace the
] line by
]   #ifndef _wchar_t
]   #define _wchar_t
]   typedef unsigned short wchar_t;
]   #endif
] 
] If one is a 16 bit thing, and another 32 (this happens
] in one of the Japanese package, I suppose), I would
] rename the 32 bit thing to Wchar_t. Remember the
] size of wchar_t is ambiguous and invites trouble.

TheMicrosoft default is 16 bits (unsigned short).  The GCC default
is implementation defined, and is typically 32 bits (on the Linux
and BSD systems I tried it on).

32 bits is a silly value for the size, since XDrawString16 exists
and XDrawString32 does not.


Unless you buy into this whole ISO10646 stuff for code pages
other than 0 (Unicode), since no other code pages are defined.


                                        Terry Lambert
                                        terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.