From owner-freebsd-alpha Thu Aug 31 8:54:43 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (Postfix) with ESMTP id 4C88B37B42C for ; Thu, 31 Aug 2000 08:54:41 -0700 (PDT) Received: (from daemon@localhost) by smtp01.primenet.com (8.9.3/8.9.3) id IAA16274; Thu, 31 Aug 2000 08:54:07 -0700 (MST) Received: from usr06.primenet.com(206.165.6.206) via SMTP by smtp01.primenet.com, id smtpdAAA_raaMB; Thu Aug 31 08:49:07 2000 Received: (from tlambert@localhost) by usr06.primenet.com (8.8.5/8.8.5) id IAA02119; Thu, 31 Aug 2000 08:49:36 -0700 (MST) From: Terry Lambert Message-Id: <200008311549.IAA02119@usr06.primenet.com> Subject: Re: wide chars? towlower, etc.? To: cmr@sitaranetworks.com (Charles Richmond) Date: Thu, 31 Aug 2000 15:49:36 +0000 (GMT) Cc: phiber@radicalmedia.com ('Mark Abene'), freebsd-alpha@FreeBSD.ORG ('freebsd-alpha@FreeBSD.ORG') In-Reply-To: <31269226357BD211979E00A0C9866DABE411ED@rios.sitaranetworks.com> from "Charles Richmond" at Aug 30, 2000 08:32:38 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I did presentations at a couple of the Unicode conferences and > in the process, looked at the multibyte/wide char issues in glib > and in Tru64. It is my recollection that towupper and towlower are > macros defined in wctype.h which should be part of glib-2.0 and > later. the pertinent routine for the actual conversion should > be towctrans(). You might want to take a look at the Tru64 docs. > If you do not have them handy then use the docs mounted off of my > webpage: http://www.iisc.com/dunix/ARH9YATE/CHDVLPSF.HTM This should all really go into a "libxpg4". Note that ELF supports linking a shared library against a shared library, so you could link libc against this to get the functions "into the base C library". This has the advantage that it keeps the code seperate, but will not load it into core and take up space by default, since the default is RTLD_LAZY for shared library bindings. PS: The linker should treat this as RTLD_PRELOAD for the purposes of symbol resolution, when linking a program image, such that you don't get executables which link successfully, but fail to run because of runtime symbol loading failures. PPS: The resolver library should be handed the same way, to better facilitate upgrades. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message