Xref: utzoo comp.std.internat:435 comp.std.c:479 comp.emacs:4592 comp.lang.c:13915 comp.sys.ibm.pc:21029 Path: utzoo!utgpu!watmath!clyde!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.std.internat,comp.std.c,comp.emacs,comp.lang.c,comp.sys.ibm.pc Subject: Re: Programming and international character sets. Message-ID: <10314@haddock.ima.isc.com> Date: 2 Nov 88 20:33:11 GMT References: <532@krafla.rhi.hi.is> <8804@smoke.BRL.MIL> <207@jhereg.Jhereg.MN.ORG> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Followup-To: comp.std.internat,comp.std.c Organization: Interactive Systems, Boston Lines: 14 In article <207@jhereg.Jhereg.MN.ORG> mark@jhereg (Mark Colburn) writes: >One problem is that, althougth the [C] standard supports multi-byte >characters ..., no support is provided [for using them with ]. >Here are some suggestions: > int wcislower(char *string) > char *wctolower(char *string) It's not necessary to pass/return pointers; there is an arithmetic type "wchar_t" in ANSI C. Thus it would be simpler to define these as follows: int wcislower(wchar_t wc); wchar_t wctolower(wchar_t wc); Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint Followups to comp.std.{internat,c}.