issue #482: octal output for 127 (bdfconv c output)

This commit is contained in:
olikraus 2018-01-14 11:02:31 +01:00
parent 20f431c78e
commit a3383c888b
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ int bf_WriteU8G2CByFP(bf_t *bf, FILE *out_fp, const char *fontname, const char *
fprintf(out_fp, "\\%o", bf->target_data[i]);
//fprintf(out_fp, "\\x%02x", bf->target_data[i]);
}
else if ( bf->target_data[i] < 128 )
else if ( bf->target_data[i] < 127 ) /* issue 482, do not output ASCII char 127, instead use octal code for 127 */
{
fprintf(out_fp, "%c", bf->target_data[i]);
}