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:
parent
4af9d97317
commit
0564c9e999
2 changed files with 7 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue