# Use libnsfix-libc6-wcsmbs for ja, ko and zh locales.
# This fixes the problem with Netscape's 16-bit characters handling.
#
# By Takuo KITAME <kitame@debian.org>, 2000/04/05
#
if [ "$LIBC" != "5" -a \( "$LOC" = "ja" -o "$LOC" = "ko" -o "$LOC" = "zh" \) ]; then
	case "$VER" in
	47*|48*|49*)	# 4.7 or newer
		if [ "$NO_NS_FIX_WCSMBS" != "yes" ]; then
			[ "$LD_PRELOAD" ] && LD_PRELOAD="$LD_PRELOAD:"
			LD_PRELOAD="$LD_PRELOAD/usr/lib/netscape/base-4/libnsfix-wcsmbs.so"
		fi
		if [ "$NO_NS_BOGUS_LOCALE" != "yes" ]; then
			[ "$LD_PRELOAD" ] && LD_PRELOAD="$LD_PRELOAD:"
			LD_PRELOAD="$LD_PRELOAD/usr/lib/netscape/base-4/ns_bogus_locale.so"
		fi
		;; 
	*)		# 4.6 or older
		if [ "$NO_NS_BOGUS_LOCALE" != "yes" ]; then
			[ "$LD_PRELOAD" ] && LD_PRELOAD="$LD_PRELOAD:"
			LD_PRELOAD="$LD_PRELOAD/usr/lib/netscape/base-4/ns_bogus_locale_old.so"
		fi
		;;
	esac
fi    
