1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-23 22:47:07 +00:00
termux-packages/packages/lesspipe/lesspipe.sh.patch
2096779623 657a87dfff upgpkg(main/lesspipe): update to 2.06
Signed-off-by: 2096779623 <admin@utermux.dev>
2022-08-18 18:36:54 +08:00

13 lines
532 B
Diff

diff -uNr lesspipe-2.06/lesspipe.sh lesspipe-2.06.mod/lesspipe.sh
--- lesspipe-2.06/lesspipe.sh 2022-08-17 17:56:28.000000000 +0800
+++ lesspipe-2.06.mod/lesspipe.sh 2022-08-18 09:08:30.092341078 +0800
@@ -724,7 +724,7 @@
setopt sh_word_split 2>/dev/null
PATH=$PATH:${0%%/lesspipe.sh}
# the current locale in lowercase (or generic utf-8)
-locale=$(locale|grep LC_CTYPE|sed 's/.*"\(.*\)"/\1/') || locale=en_US.UTF-8
+locale=en_US.UTF-8
lclocale=$(echo ${locale##*.}|tr '[:upper:]' '[:lower:]')
sep=: # file name separator