version 1.8, 2011/09/16 18:12:09 |
version 1.9, 2011/09/21 20:57:42 |
|
|
if ((c < 128 || !utf_mode) && !control_char(c)) |
if ((c < 128 || !utf_mode) && !control_char(c)) |
SNPRINTF1(buf, sizeof(buf), "%c", (int) c); |
SNPRINTF1(buf, sizeof(buf), "%c", (int) c); |
else if (c == ESC) |
else if (c == ESC) |
snprintf(buf, sizeof(buf), "ESC"); |
strlcpy(buf, "ESC", sizeof(buf)); |
#if IS_EBCDIC_HOST |
#if IS_EBCDIC_HOST |
else if (!binary_char(c) && c < 64) |
else if (!binary_char(c) && c < 64) |
SNPRINTF1(buf, sizeof(buf), "^%c", |
SNPRINTF1(buf, sizeof(buf), "^%c", |
|
|
if (!iscntrl(c)) |
if (!iscntrl(c)) |
snprintf(buf, sizeof(buf), "%c", c); |
snprintf(buf, sizeof(buf), "%c", c); |
else if (c == ESC) |
else if (c == ESC) |
snprintf(buf, sizeof(buf), "ESC"); |
strlcpy(buf, "ESC", sizeof(buf)); |
else if (c < 128 && !iscntrl(c ^ 0100)) |
else if (c < 128 && !iscntrl(c ^ 0100)) |
snprintf(buf, sizeof(buf), "^%c", c ^ 0100); |
snprintf(buf, sizeof(buf), "^%c", c ^ 0100); |
else |
else |