From owner-FreeBSD-users-jp@jp.freebsd.org  Sat Nov  1 13:53:02 1997
Received: by jaz.jp.freebsd.org (8.8.8+2.7Wbeta7/8.7.3) id NAA23086
	Sat, 1 Nov 1997 13:53:02 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.7+2.7Wbeta7/8.7.3) with ESMTP id NAA23080
	for <FreeBSD-users-jp@jp.freebsd.org>; Sat, 1 Nov 1997 13:52:59 +0900 (JST)
Received: from hiro.mydomain.jp (localhost.mydomain.jp [127.0.0.1])
	by hiro.mydomain.jp (8.8.5/3.6Wbeta7) with ESMTP id NAA00654
	for <FreeBSD-users-jp@jp.freebsd.org>; Sat, 1 Nov 1997 13:53:57 +0900 (JST)
Message-Id: <199711010453.NAA00654@hiro.mydomain.jp>
To: FreeBSD-users-jp@jp.freebsd.org
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=ISO-2022-JP
Date: Sat, 01 Nov 1997 13:53:56 +0900
From: Hirohito Higuchi <hirohito@msi.biglobe.ne.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=20]
X-Sequence: FreeBSD-users-jp 20092
Subject: [FreeBSD-users-jp 20092] Netscape with kinput2
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

DearSirs
$BHu8}$G$9!#A02s$N%a!<%k$O$d$C$Q$j>pJsITB-$N$;$$$+A4A3%j%W%i%$$,JV$C$FMh$J$+$C$?(B
$B$G$9!#(B
$B$5$FLdBj$O!"(Bkinput2$B$r5/F0$5$;$?8e!"(BNetscapeCommunicator4.3R-forLinux1.2$B$r5/F0(B
$B$5$;$k$H!"%(%i!<%a%C%;!<%8$,D9!9$H$G$F?k$K$O5/F0$7$J$$$H8@$&$b$N$G$9!#(B
$B$J$*!"$3$N$h$&$JN`$N<ALd$O$+$J$j$"$k$H;W$$$^$9$,!"(BML$B$G$O3:Ev$7$?%a!<%k$O(B
$BL5$+$C$?$h$&$G$7$?!#$b$7!"8+K:$l$F$$$?$i$4$a$s$J$5$$!#(B
Done things:
1:Install netscapecommunicator to /usr/local/netscape-linux as written in README.
2:Compile liblocale.so as following;
---
/* locale.c for Linux
   gcc -fPIC -shared -Wl,-rpath=/usr/X11R6/lib,-soname,liblocale.so \
   -o liblocale.so locale.c -L/usr/X11R6/lib -lX11 -lXt

   LD_PRELOAD=/lib/liblocale.so netscape */

#include <locale.h>
#include <X11/Intrinsic.h>

char *_Xsetlocale (int, const char *);

#undef setlocale
char *setlocale (int c, const char *l)
{
  if ((c == LC_ALL || c == LC_CTYPE) && l != NULL
      && !(*l == 'C' && l[1] == '\0')) {
        XtSetLanguageProc(NULL, NULL, NULL);
        l = NULL;
  }
  return _Xsetlocale(((c == LC_ALL || c == LC_CTYPE) ? 2 : 3), l);
}
3:Update /compat/linux/usr/X11R6/lib/libX11.so to libX11.so.6.1.
4:Update /compat/linux/lib/libc to libc.so.5.4.38.
5:get resourcefile from http://www.bres.tsukuba.ac.jp/~yohta/netscape/
(named Netscape-jp-v403.ad)
6:use following script named 'jlnetscape'
---
#!/bin/sh
XFILESEARCHPATH=/usr/local/netscape-linux/Netscape
XKEYSYMDB=/usr/local/netscape-linux/XKeysymDB
XNLSPATH=/usr/X11/lib/X11/nls
MOZILLA_HOME=/usr/local/netscape-linux
#XMODIFIERS=@im=kinput2
LD_PRELOAD=/usr/home/hirohito/tmplinux/liblocale.so
export XFILESEARCHPATH
export XKEYSYMDB MOZILLA_HOME  LD_PRELOAD 
export XNLSPATH 
exec /usr/local/netscape-linux/netscape  $*
--$B!<(B
7:then type these;
 kinput2&
 jlnetscape&
She replies;
---
netscape:
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Resource id in failed request:  0x2400550
  Serial number of failed request:  5302
  Current serial number in output stream:  5302
  Widget hierarchy of resource: Navigator.netscape



netscape:
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Resource id in failed request:  0x2400550
  Serial number of failed request:  5302
  Current serial number in output stream:  5302
  Widget hierarchy of resource: Navigator.netscape
---
$B%3%a%s%H!'>e5-$N%(%i!<%a%C%;!<%8$,$G$?>l9g!"(Blibc$B$r(Blibc.so.5.4.38
$B$K$9$l$PNI$$!"$H$N%G!<%?$b$"$j$^$7$?!#$7$+$7$3$l0J>e$I$&$7$g$&$b$J$$$,!#(B

$B$G!"$I$J$?$+(Blinux$BMQ$N%b%8%i$G(Bkinput2$B$K$h$kF~NO$r2DG=$K$5$l$?J}(B
$B$*$_$($K$J$j$^$;$s$+!)(B
Thanks
H.Higuchi<hirohito@msi.biglobe.ne.jp>
