less/less.sh
cvsdist f2dc55a0a9 auto-import changelog data from less-378-11.1.src.rpm
Mon Sep 01 2003 Karsten Hopp <karsten@redhat.de> 378-11.1
- rebuilt
Mon Sep 01 2003 Karsten Hopp <karsten@redhat.de> 378-11
- use LC_ALL when set (lang.[c]sh)
Mon Aug 11 2003 Karsten Hopp <karsten@redhat.de> 378-10.1
- link against ncursesw if available
Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt
Wed May 28 2003 Florian La Roche <Florian.LaRoche@redhat.de>
- fix korean #79977
- add new less.sh from #89780, s/ko/korean/ and write .csh script
- add patch from #91661: /japanses/japanese-euc/
2004-09-09 07:15:22 +00:00

15 lines
435 B
Bash
Executable File

# less initialization script (sh)
[ -x /usr/bin/lesspipe.sh ] && export LESSOPEN="|/usr/bin/lesspipe.sh %s"
if [ x"$LC_ALL" != "x" ]; then
LANGVAR=$LC_ALL
else
LANGVAR=$LANG
fi
if [ x`echo $LANGVAR | cut -b 7- | tr -s "[:lower:]" "[:upper:]"` = x"EUCJP" ]; then
export JLESSCHARSET=japanese-euc
elif [ x`echo $LANGVAR | cut -b 7- | tr -s "[:lower:]" "[:upper:]"` = x"EUCKR" ]; then
export JLESSCHARSET=korean
fi