Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 361536 Details for
Bug 365263
sys-apps/less - auto convert UTF16/UTF32 inputs to active encoding
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cleaned up patch
lesspipe.patch (text/plain), 780 bytes, created by
Scott Bertilson
on 2013-10-21 15:35:08 UTC
(
hide
)
Description:
cleaned up patch
Filename:
MIME Type:
Creator:
Scott Bertilson
Created:
2013-10-21 15:35:08 UTC
Size:
780 bytes
patch
obsolete
>--- /usr/portage/sys-apps/less/files/lesspipe.sh 2013-08-06 17:01:32.000000000 -0500 >+++ /home/ssb/bin/lesspipe.sh 2013-10-21 10:24:21.772794865 -0500 >@@ -195,6 +195,23 @@ > > ### Everything else ### > *) >+ case `file -b -- "$1"` in >+ *UTF-16\ Unicode\ text*) conv='UTF-16' ;; >+ *UTF-32\ Unicode\ text*) conv='UTF-32' ;; >+ esac >+ if [ -n "$LC_ALL" ]; then >+ env="$LC_ALL" >+ elif [ -n "$LC_CTYPE" ]; then >+ env="$LC_CTYPE" >+ else >+ env="$LANG" >+ fi >+ env=`echo $env | cut -d. -f2` >+ if [ -n "$conv" -a -n "$env" -a "$conv" != "$env" ]; then >+ if iconv -f $conv -t $env -- "$1"; then >+ exit 0 >+ fi >+ fi > case $(( recur++ )) in > # Maybe we didn't match due to case issues ... > 0) lesspipe "$1" "$(echo $1 | LC_ALL=C tr '[:upper:]' '[:lower:]')" ;;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 365263
: 361536