From owner-freebsd-hackers Fri Mar 20 18:15:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA26334 for freebsd-hackers-outgoing; Fri, 20 Mar 1998 18:15:36 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from rf900.physics.usyd.edu.au (rf900.physics.usyd.edu.au [129.78.129.109]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA26312 for ; Fri, 20 Mar 1998 18:15:19 -0800 (PST) (envelope-from dawes@rf900.physics.usyd.edu.au) Received: (from dawes@localhost) by rf900.physics.usyd.edu.au (8.8.5/8.8.2) id NAA26656; Sat, 21 Mar 1998 13:14:22 +1100 (EST) Message-ID: <19980321131422.62616@rf900.physics.usyd.edu.au> Date: Sat, 21 Mar 1998 13:14:22 +1100 From: David Dawes To: Makoto MATSUSHITA Cc: hackers@FreeBSD.ORG, "Kaleb S. KEITHLEY" Subject: Re: 3.0-971225SNAP, Japanese/Korean locales, and libxpg4 References: <350D7ED6.5372@opengroup.org> <19980317114231J.matusita@ics.es.osaka-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <19980317114231J.matusita@ics.es.osaka-u.ac.jp>; from Makoto MATSUSHITA on Tue, Mar 17, 1998 at 11:42:31AM +0900 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 17, 1998 at 11:42:31AM +0900, Makoto MATSUSHITA wrote: > >Sorry I do not know why multibyte-supporting locale is out of libc... > >k.keithley> What's the rationale for having the SJIS and EUC locale >k.keithley> support in libxpg4 instead of libc? > >IMHO, we should link with xpg4 library when linking X libraries to >compile X application. Many FreeBSD ports application tries to link >so, especially in japanese and x11 category (these applications try to >link xpg4 library manually; ahh, where the imake framework has gone :-) > >How about changing $XTOP/X11/lib/config/FreeBSD.cf to add -lxpg4 >to linker's option, when the FreeBSD's version >= 2.2 ? So, what's the official position of FreeBSD on this? If it is going to stay in libxpg4 rather than be in libc, I'll make the appropriate change to the FreeBSD.cf in the XFree86 source. Perhaps something like the following (relative to XFree86 3.3.2)? *** FreeBSD.cf 1998/03/01 01:08:59 3.58.2.11 --- xc/config/cf/FreeBSD.cf 1998/03/21 02:12:22 *************** *** 59,65 **** --- 59,70 ---- #define DefaultCCOptions -ansi -pedantic -Dasm=__asm #endif #ifndef ExtraLibraries + /* support for multi-byte locales is in libxpg4 rather than libc */ + #if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 2) + #define ExtraLibraries -lxpg4 + #else #define ExtraLibraries /**/ + #endif #endif #ifndef UseGnuMalloc /* 2.2 doesn't really have GnuMalloc */ David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message