added iso-term 0.9.26
authorMichael Prokop <mika@grml.org>
Sat, 17 Mar 2007 18:59:26 +0000 (19:59 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 17 Mar 2007 18:59:26 +0000 (19:59 +0100)
debian/changelog
debian/rules
manpages/iso-term.1 [new file with mode: 0644]
usr_bin/iso-term [new file with mode: 0755]

index a30ed87..2d4377c 100644 (file)
@@ -1,3 +1,10 @@
+grml-scripts (0.9.26) unstable; urgency=low
+
+  * Added iso-term (wrapper script to run x-terminal-emulator in iso885915
+    mode).
+
+ -- Michael Prokop <mika@grml.org>  Sat, 17 Mar 2007 19:59:09 +0100
+
 grml-scripts (0.9.25) unstable; urgency=low
 
   * zsh-login: do not run grml-quickconfig when booting with 'nocolor'
index fafd07f..5c40c09 100755 (executable)
@@ -55,7 +55,8 @@ binary-arch: build install
        dh_installdocs
        dh_installman manpages/grml-scripts.1 manpages/reread_partition_table.8 manpages/gtf.1 manpages/random-hostname.1 \
        manpages/grml-setkeyboard.8 manpages/grml-setlang.8 manpages/getsf.1 manpages/grml-iptstate.8 manpages/qma.1 manpages/grml-swapon.8 \
-       manpages/grml2ram.8 manpages/gsuggest.1 manpages/dirvish-setup.8 manpages/grml-setservices.8 manpages/grml-quickconfig.8
+       manpages/grml2ram.8 manpages/gsuggest.1 manpages/dirvish-setup.8 manpages/grml-setservices.8 manpages/grml-quickconfig.8 \
+       manpages/iso-term.1
 #      cp --no-dereference man/*.1.gz debian/grml-scripts/usr/share/man/man1/
        dh_link /usr/sbin/blacklist /usr/sbin/unblacklist \
                /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/align.1.gz \
diff --git a/manpages/iso-term.1 b/manpages/iso-term.1
new file mode 100644 (file)
index 0000000..e807d88
--- /dev/null
@@ -0,0 +1,24 @@
+.TH iso-term 1
+.SH "NAME"
+iso-term \- wrapper script to run x-terminal-emulator in iso885915 mode
+.SH SYNOPSIS
+.B iso-term
+.SH DESCRIPTION
+This manual page documents briefly the
+.B iso-term
+command.
+.SH OPTIONS
+iso-term does not support any options.
+.SH NOTES
+iso-term is a simple wrapper script to run x-terminal-emulator in iso885915 mode.
+This might be useful when you have to connect to a remote system which is running
+in iso885915 mode even though your local system uses utf-8.
+.SH USAGE EXAMPLES
+.TP
+.B iso-term
+Run x-terminal-emulator in iso mode.
+.SH AUTHOR
+iso-term was written by Michael Prokop <mika@grml.org>.
+.PP
+This manual page was written by Michael Prokop
+<mika@grml.org> for the grml project (but may be used by others).
diff --git a/usr_bin/iso-term b/usr_bin/iso-term
new file mode 100755 (executable)
index 0000000..9a81976
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Filename:      iso-term
+# Purpose:       wrapper script to run x-terminal-emulator in iso885915 mode
+# Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
+# Bug-Reports:   see http://grml.org/bugs/
+# License:       This file is licensed under the GPL v2.
+# Latest change: Sam Mär 17 19:56:13 CET 2007 [mika]
+################################################################################
+
+isutfenv() {
+case "$LANG $CHARSET $LANGUAGE" in
+        (*utf*) return 0 ;;
+        (*UTF*) return 0 ;;
+        (*) return 1 ;;
+esac
+}
+
+if isutfenv ; then
+   for ENV in `env | grep UTF` ; do
+       eval export "$(echo $ENV | sed 's/UTF-8/iso885915/')"
+   done
+   x-terminal-emulator
+else
+   x-terminal-emulator
+fi
+
+## END OF FILE #################################################################