#!/bin/bash
# Author: Steven Shiau <steven _at_ nchc org tw>
# License: GPL
# This script will starb bterm with zh_TW.UTF-8 in Debian.

. /opt/drbl/sbin/drbl-conf-functions

bterm=/usr/bin/bterm
uni_font=/opt/drbl/lib/unifont.bgf

check_if_root

if [ -z "$(localedef --list-archive | grep -iw "zh_TW.utf8")" ]; then
  localedef -f UTF-8 -i zh_TW zh_TW.UTF-8
fi
# it's restore, so we show bterm to show them with zh_TW
export LANG="zh_TW.UTF-8"
export TERM=bterm
set +e
bterm -l $LANG -f $uni_font
