Release new version 2.13.0
[grml-scripts.git] / usr_bin / iso-term
1 #!/bin/sh
2 # Filename:      iso-term
3 # Purpose:       wrapper script to run x-terminal-emulator in iso885915 mode
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 ################################################################################
8
9 isutfenv() {
10 case "$LANG $CHARSET $LANGUAGE" in
11         (*utf*) return 0 ;;
12         (*UTF*) return 0 ;;
13         (*) return 1 ;;
14 esac
15 }
16
17 if isutfenv ; then
18    for ENV in $(env | grep UTF) ; do
19        eval export "$(echo "$ENV" | sed 's/UTF-8/iso885915/')"
20    done
21 fi
22 ZSH_NO_DEFAULT_LOCALE=1 x-terminal-emulator "$@"
23
24 ## END OF FILE #################################################################