From 35710c6461bfadbfb7f7184fa597d05e29da0bf7 Mon Sep 17 00:00:00 2001 From: tg Date: Thu, 25 Jul 2013 14:02:02 +0000 Subject: [PATCH] disable utf8-mode for hd function (temporarily) --- dot.mkshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot.mkshrc b/dot.mkshrc index c10b8fd..316f555 100644 --- a/dot.mkshrc +++ b/dot.mkshrc @@ -1,5 +1,5 @@ # $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, # 2011, 2012, 2013 @@ -66,7 +66,7 @@ else local -Uui16 -Z5 hv=2147483647 local dasc line i - cat "$@" | if read -arN -1 line; then + cat "$@" | { set +U; if read -arN -1 line; then typeset -i1 line i=0 while (( i < ${#line[*]} )); do @@ -89,7 +89,7 @@ else (( (pos++ & 15) == 7 )) && print -n -- '- ' done (( hv == 2147483647 )) || print -r -- "$dasc|" - fi + fi; } } fi