linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / misc / fxlinuxprintutil / fxlputil.patch
blob972152b2cc3e9df3fb347944c6aa78c4a322d259
1 diff --git a/usr/bin/fxlputil b/usr/bin/fxlputil
2 index cdac66d..aa86d02 100755
3 --- a/usr/bin/fxlputil
4 +++ b/usr/bin/fxlputil
5 @@ -7,17 +7,19 @@
6 # TCL=`which fxlputil`
7 #fi
9 +wrapper=$(dirname $0)/fxlputil
11 #set LC_ALL
12 -locale=`tclsh $0lo.tcl`
13 +locale=`tclsh ${wrapper}lo.tcl`
15 case $locale in
16 "ja")
17 - env LC_ALL=ja_JP.UTF-8 wish $0.tcl $1
18 + env LC_ALL=ja_JP.UTF-8 wish ${wrapper}.tcl $1
20 "en")
21 - env LC_ALL=en_US.ISO8859-1 wish $0.tcl $1
22 + env LC_ALL=en_US.ISO8859-1 wish ${wrapper}.tcl $1
25 - env LC_ALL=C wish $0.tcl $1
26 + env LC_ALL=C wish ${wrapper}.tcl $1
28 esac