🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.internat
Article #892

Re: International Collating Sequence

#892
From: Karl Heuer
Date: Mon, 12 Oct 1987 21:15
16 lines
1464 bytes
In article <1483@ist.UUCP> agc@ist.UUCP (Alistair G. Crooks) writes:
>Why not strip the string routines from libc into a shared library,
>that can be dynamically linked at run time? Or even just strcmp()
>and strncmp()?

Actually, a shared library normally gives you the choice at startup-time
rather than run-time.

I don't think it's appropriate to replace strcmp().  Most uses of strcmp() are
to test two strings for exact equality; these should be left alone.  The ANSI
C library includes a new function (it's "strcoll()" in the Oct86 dpANS; but I
think it may have changed since then) which will "digest" any string in a
locale-specific way.  (For example, in German-Telephone-Directory mode it
could map "Schr\(o"der" to "schroeder".)  This seems like a good approach.

Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint
Technical Details
Message-ID: <1362@haddock.ISC.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!necntc!ima!haddock!karl
References: <2706@sol.ARPA> <29640@sun.uucp> <363@zuring.cwi.nl> <1483@ist.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!necntc!ima!haddock!karl
From: karl@haddock.ISC.COM (Karl Heuer)
Newsgroups: comp.std.internat
Subject: Re: International Collating Sequence
Message-ID: <1362@haddock.ISC.COM>
Date: Mon, 12-Oct-87 17:15:58 EDT
Article-I.D.: haddock.1362
Posted: Mon Oct 12 17:15:58 1987
Date-Received: Wed, 14-Oct-87 02:12:59 EDT
References: <2706@sol.ARPA> <29640@sun.uucp> <363@zuring.cwi.nl> <1483@ist.UUCP>
Reply-To: karl@haddock.ima.isc.com (Karl Heuer)
Organization: Interactive Systems, Boston
Lines: 16