1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-25 14:20:53 +01:00

23808: debugging for wcs_nicechar()

This commit is contained in:
Peter Stephenson 2007-08-30 15:18:25 +00:00
parent 4af9d97317
commit 0564c9e999
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2007-08-30 Peter Stephenson <pws@csr.com>
* 23808: Src/utils.c: debugging to try to isolate intermittent
problem in wcs_nicechar().
* 23807: Src/Zle/complist.c, Src/Zle/zle_misc.c: interactive mode
in completion was fairly seriously broken.

View file

@ -552,8 +552,12 @@ wcs_nicechar(wchar_t c, size_t *widthp, char **swidep)
if (swidep)
*swidep = s;
for (mbptr = mbstr; ret; s++, mbptr++, ret--) {
DPUTS(s >= buf + NICECHAR_MAX,
"BUG: buffer too small in wcs_nicechar");
if (imeta(*mbptr)) {
*s++ = Meta;
DPUTS(s >= buf + NICECHAR_MAX,
"BUG: buffer too small for metafied char in wcs_nicechar");
*s = *mbptr ^ 32;
} else {
*s = *mbptr;