disable utf8-mode for hd function (temporarily)

This commit is contained in:
tg
2013-07-25 14:02:02 +00:00
parent b46001ad4a
commit 35710c6461

View File

@ -1,5 +1,5 @@
# $Id$ # $Id$
# $MirOS: src/bin/mksh/dot.mkshrc,v 1.82 2013/05/02 21:59:48 tg Exp $ # $MirOS: src/bin/mksh/dot.mkshrc,v 1.83 2013/07/25 14:02:02 tg Exp $
#- #-
# Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, # Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012, 2013 # 2011, 2012, 2013
@ -66,7 +66,7 @@ else
local -Uui16 -Z5 hv=2147483647 local -Uui16 -Z5 hv=2147483647
local dasc line i local dasc line i
cat "$@" | if read -arN -1 line; then cat "$@" | { set +U; if read -arN -1 line; then
typeset -i1 line typeset -i1 line
i=0 i=0
while (( i < ${#line[*]} )); do while (( i < ${#line[*]} )); do
@ -89,7 +89,7 @@ else
(( (pos++ & 15) == 7 )) && print -n -- '- ' (( (pos++ & 15) == 7 )) && print -n -- '- '
done done
(( hv == 2147483647 )) || print -r -- "$dasc|" (( hv == 2147483647 )) || print -r -- "$dasc|"
fi fi; }
} }
fi fi