summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/Zle/zle_refresh.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 0950bcedd..a543f0737 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
 2005-01-26  Clint Adams  <clint@zsh.org>
 
-	* 20747: Src/Zle/zle_refresh.c, Src/system.h: some wide char
-	support in the zle refresh code.
+	* 20747, 20751: Src/Zle/zle_refresh.c, Src/system.h: some
+	wide char support in the zle refresh code.
 
 2005-01-26  Peter Stephenson  <pws@csr.com>
 
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 7c6de6276..f67c5aeb3 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -478,7 +478,7 @@ zrefresh(void)
 		nextline
 	    }
 #ifdef ZLE_UNICODE_SUPPORT
-# error What to do here
+	    *s++ = ((*t == 127) || (*t > 255)) ? '?' : (*t | '@');
 #else
 	    *s++ = (*t == 127) ? '?' : (*t | '@');
 #endif
@@ -488,7 +488,7 @@ zrefresh(void)
 
 	    i = wcrtomb(s, *t, &shiftstate);
 	    if (i == -1) {
-		/* error; what to do? */
+		*s++ = '?';
 	    } else {
 		s += i;
 	    }