Skip to content

Commit

Permalink
evaluation of current locale changed
Browse files Browse the repository at this point in the history
  • Loading branch information
wofr06 committed Dec 22, 2024
1 parent 532d493 commit 23e0e4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
****************************************************************************
# ChangeLog for lesspipe.sh #
****************************************************************************
- evaluation of current locale changed (compatible with old bash versions)
- correct typo in xlsx files handling
Version 2.16 Nov 10 2024
- security fix: check file name if used with ar
Expand Down
3 changes: 1 addition & 2 deletions lesspipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -841,8 +841,7 @@ set +o noclobber
setopt sh_word_split 2>/dev/null
PATH=$PATH:${0%%/lesspipe.sh}
# the current locale in lowercase (or generic utf-8)
declare -l charmap
charmap=$(locale -k charmap) || charmap="charmap=utf-8"
charmap=$(locale -k charmap|tr '[:upper:]' '[:lower:]') || charmap="charmap=utf-8"
eval "$charmap"

sep=: # file name separator
Expand Down

0 comments on commit 23e0e4d

Please sign in to comment.