+2002-09-17 Tom Tromey <tromey@redhat.com>
+
+ * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
+ is "'".
+
2002-09-17 Corinna Vinschen <vinschen@redhat.com>
* MAINTAINERS: Remove "non multi-arched" text from h8300.
case '\007':
fputs_filtered ("\\a", stream);
break;
- case '\0':
- fputs_filtered ("\\0", stream);
- break;
+ case '\0':
+ if (quoter == '\'')
+ fputs_filtered ("\\0", stream);
+ else
+ fprintf_filtered (stream, "\\%.3o", (unsigned int) c);
+ break;
default:
fprintf_filtered (stream, "\\%.3o", (unsigned int) c);
break;