[BACK]Return to charset.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Diff for /src/usr.bin/less/charset.c between version 1.8 and 1.9

version 1.8, 2011/09/16 18:12:09 version 1.9, 2011/09/21 20:57:42
Line 428 
Line 428 
         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",
Line 1216 
Line 1216 
         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

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9