Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!ucdavis!ucrmath!hope!corwin
From: corwin@hope.UUCP (John Kempf)
Newsgroups: comp.lang.c
Subject: Re: locales
Message-ID: <1047@hope.UUCP>
Date: Sun, 11-Jan-87 02:46:38 EST
Article-I.D.: hope.1047
Posted: Sun Jan 11 02:46:38 1987
Date-Received: Sun, 11-Jan-87 23:12:20 EST
References: <3231@cbosgd.ATT.COM>
Organization: University of California, Riverside
Lines: 26

> While we're on the subject, I have another question.  In German, for
> example, the lower case ess-tset letter has no single character upper
> case equivalent, and is supposed to be mapped into "SS" in upper case.
> (There are other languages with similar mappings.)  What is the toupper
> function supposed to do when presented with an ess-tset?  Wouldn't a
> string-to-string mapping function similar to strupr be more portable?
> 

It has been a while since I last had a german class, but isn't the
ess-tset character equivilant to 'ss' (or was that 'sz')?  Wouldn't it
make more sense to leave the toupper 'function' as is, and create a
different function for local mapping?  or possible have toupper, when
faced with an ess-tset return 'S'?  

string to string might be more portable, but it is often more than is
needed.  On this machine (VAX11/750, 4.3BSD) toupper is implemented as a
macro.  If toupper were removed, a lot of code would break, and a lot of
excess overhead would be entailed (function vs. macro).  A string
conversion function might be usefull in addition tho.
-- 
-cory

'My ancestors are sorry about yours'

UUCP:   ucbvax!ucdavis!ucrmath!hope!corwin
ARPA:   ucdavis!ucrmath!hope!corwin@lll-crg.ARPA