1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

* 20751: Src/Zle/zle_refresh.c: use '?' for character conversion error

This commit is contained in:
Clint Adams 2005-01-26 14:29:12 +00:00
parent 9453ea957e
commit 3934f7a402
2 changed files with 4 additions and 4 deletions

View file

@ -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>

View file

@ -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;
}