Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 1998 13:14:22 +1100
From:      David Dawes <dawes@rf900.physics.usyd.edu.au>
To:        Makoto MATSUSHITA <matusita@ics.es.osaka-u.ac.jp>
Cc:        hackers@FreeBSD.ORG, "Kaleb S. KEITHLEY" <k.keithley@opengroup.org>
Subject:   Re: 3.0-971225SNAP, Japanese/Korean locales, and libxpg4
Message-ID:  <19980321131422.62616@rf900.physics.usyd.edu.au>
In-Reply-To: <19980317114231J.matusita@ics.es.osaka-u.ac.jp>; from Makoto MATSUSHITA on Tue, Mar 17, 1998 at 11:42:31AM %2B0900
References:  <350D7ED6.5372@opengroup.org> <19980317114231J.matusita@ics.es.osaka-u.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980321131422.62616>