]> git.phdru.name Git - dotfiles.git/commitdiff
.mailcap: convert text from utf-8 to the current locale
authorOleg Broytman <phd@phdru.name>
Fri, 14 Nov 2014 04:12:06 +0000 (07:12 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 14 Nov 2014 04:12:06 +0000 (07:12 +0300)
.mailcap

index 4ad9def18ce4c2fcfe9e14ec147fa9c594ae8d70..601f870806ba98a040e80be58bacca8f56ab33f0 100644 (file)
--- a/.mailcap
+++ b/.mailcap
@@ -32,7 +32,7 @@ application/msword; catdoc %s; copiousoutput; description="M$ Word Text"; test=t
 application/msword; wordview %s; edit=libreoffice %s; description="M$ Word Text"; test=test -n "$DISPLAY" -a -n "`which wordview 2>/dev/null`"
 application/vnd.ms-excel; xls2csv %s; copiousoutput; description="M$ Excel files"; test=test -n "`which xls2csv 2>/dev/null`"
 application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s - | iconv.py -f utf-8 | less; edit=libreoffice %s; needsterminal; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`" -a -n "`which iconv.py 2>/dev/null`" -a -n "`which less 2>/dev/null`"
-application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s - | more; needsterminal; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`" -a -n "`which more 2>/dev/null`"
+application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s - | iconv.py -f utf-8 | more; needsterminal; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`" -a -n "`which iconv.py 2>/dev/null`" -a -n "`which more 2>/dev/null`"
 application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s -; copiousoutput; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`"
 
 audio/mpeg; audtool --playlist-clear --playlist-addurl %s --playback-play; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`which audtool 2>/dev/null`" && test "`audtool --get-volume`" -gt 0