Commit Diff


commit - b229234e62efcc9119fc7b321ca1e3846d678b12
commit + 5ed6e4d2a7519005ddb8c8b7f47a02f6085df3fe
blob - a1107f6772c2799cd66b0cda9c5c57362f9aa94f
blob + 8832026c2c75b90807d7a10e032484e14cc4efd6
--- lib/diff_output.c
+++ lib/diff_output.c
@@ -94,10 +94,7 @@ diff_output_lines(struct diff_output_info *outinfo, FI
 			rc = get_atom_byte(&ch, atom, i);
 			if (rc)
 				return rc;
-			if ((ch < 0x20 || ch >= 0x7f) && ch != '\t')
-				rc = fprintf(dest, "\\x%02x", (unsigned char)ch);
-			else
-				rc = fprintf(dest, "%c", ch);
+			rc = fprintf(dest, "%c", (unsigned char)ch);
 			if (rc < 0)
 				return errno;
 			outlen += rc;