1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-12 10:00:56 +01:00

34636: replace broken isprint() on Mac OS X

This commit is contained in:
Jun-ichi Takimoto 2015-03-05 01:48:34 +09:00
parent 0ac87e3f59
commit 4bc554bb8b
6 changed files with 63 additions and 3 deletions

View file

@ -414,7 +414,7 @@ nicechar(int c)
static char buf[6];
char *s = buf;
c &= 0xff;
if (isprint(c))
if (ISPRINT(c))
goto done;
if (c & 0x80) {
if (isset(PRINTEIGHTBIT))
@ -423,7 +423,7 @@ nicechar(int c)
*s++ = 'M';
*s++ = '-';
c &= 0x7f;
if(isprint(c))
if(ISPRINT(c))
goto done;
}
if (c == 0x7f) {