Mercurial > hg > xemacs-beta
comparison src/print.c @ 187:b405438285a2 r20-3b20
Import from CVS: tag r20-3b20
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:56:28 +0200 |
parents | 3d6bfa290dbd |
children | e45d5e7c476e |
comparison
equal
deleted
inserted
replaced
186:24ac94803b48 | 187:b405438285a2 |
---|---|
944 strcpy (buf, "\\n"); | 944 strcpy (buf, "\\n"); |
945 else if (ch == '\r') | 945 else if (ch == '\r') |
946 strcpy (buf, "\\r"); | 946 strcpy (buf, "\\r"); |
947 else if (ch == '\t') | 947 else if (ch == '\t') |
948 strcpy (buf, "\\t"); | 948 strcpy (buf, "\\t"); |
949 else if (ch < 32) | 949 else if (ch < 32) { |
950 sprintf (buf, "\\^%c", ch + 64); | 950 sprintf (buf, "\\^%c", ch + 64); |
951 else if (ch == 127) | 951 if ((ch + 64) == '\\') { |
952 strcat(buf, "\\"); | |
953 } | |
954 } else if (ch == 127) | |
952 strcpy (buf, "\\^?"); | 955 strcpy (buf, "\\^?"); |
953 else if (ch >= 128 && ch < 160) | 956 else if (ch >= 128 && ch < 160) |
954 { | 957 { |
955 Bytecount i; | 958 Bytecount i; |
956 strcpy (buf, "\\^"); | 959 strcpy (buf, "\\^"); |