changeset 395:3d82052c3cd3

Do htmlescape() for euc-jp string and restore to original charset
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 06 Dec 2016 12:32:04 +0859
parents f095e97066c5
children cacd961d3405
files s4-funcs.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/s4-funcs.sh	Mon Dec 05 14:21:23 2016 +0859
+++ b/s4-funcs.sh	Tue Dec 06 12:32:04 2016 +0859
@@ -3432,7 +3432,7 @@
       if [ -z "$3" ]; then
 	ct="text/html${charset:+; charset=$charset}"
 	link="?showattc+$1+$2+raw"
-	cat $bin | htmlescape \
+	nkf -e $bin | htmlescape | nkf --oc="$charset" \
 	    | sed 's,^,<span></span>,' \
 	    | _m4 -D_TITLE_="$fn" -D_CONTENT_TYPE_="$ct" \
 		  -D_LINK_="$link" \

yatex.org