From 173106985542c9f2a14ce1699a3e6fb660eb69a1 Mon Sep 17 00:00:00 2001 From: Gremlin from Kremlin Date: Sat, 4 Apr 2009 10:37:52 +0000 Subject: [PATCH] added bin/golded - script for launching GoldEd in UTF-8 environment --- bin/golded | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 bin/golded diff --git a/bin/golded b/bin/golded new file mode 100644 index 0000000..23db946 --- /dev/null +++ b/bin/golded @@ -0,0 +1,6 @@ +#!/bin/sh +# run this file to launch GoldEd +# it also contains workaround for Russian language in UTF-8 encoding +echo "$LC_ALL $LC_CTYPE $LANG" | grep -q "ru_RU.UTF-8" \ + && (export LC_ALL="ru_RU.KOI8-R"; exec luit -encoding koi8-r -- gedlnx $*) \ + || exec gedlnx $*