#!/bin/sh
# this is a wrapper script which just unsets LOCALE settings for wnb because
# it is not localized at all and might cause crashes on some locales (at least
# zh_TW.UTF-8
#
# On Thu, 25 Mar 2004, Chung-chieh Shan <ccshan@post.harvard.edu> wrote:
# 
# After further investigations, I discovered that the bug lies in the X
# libraries.  The problem is not triggered by locale settings per se --
# rather, it is triggered because a dangling pointer is left behind when
# wnb tries to connect to an input method server and fails in a certain
# way.  Please see the attached bug report (#239991) that I just filed.
#
# Either now or when this new bug is resolved, the funny workaround
# in /usr/bin/wnb should be removed.  The "right" workaround for now
# (if there ever is one) is not to set any locale variables in the
# environment, but to set XMODIFIERS to "@im=nonexistent".  No hurry;
# I seem to be the only affected user. (:
#
# ---> so expect this wrapper to vanish once the bug is closed.

export LANG=POSIX
export LC_CTYPE="POSIX"
export LC_NUMERIC="POSIX"
export LC_TIME="POSIX"
export LC_COLLATE="POSIX"
export LC_MONETARY="POSIX"
export LC_MESSAGES=C
export LC_PAPER="POSIX"
export LC_NAME="POSIX"
export LC_ADDRESS="POSIX"
export LC_TELEPHONE="POSIX"
export LC_MEASUREMENT="POSIX"
export LC_IDENTIFICATION="POSIX"
export LC_ALL=""

/usr/share/wordnet/wnres/wnb $@

