[net.sources.d] escape codes in source code

levy@ttrdc.UUCP (Daniel R. Levy) (07/08/86)

In article <405@ucdavis.UUCP>, ccrdave@ucdavis.UUCP (Lord Kahless) writes:
>> Our problem is that we received all of the sources, but all of the files
>> with VT100 control codes (like the ".mailxx" files) were missing vital
>> control characters!!!  Is there anyone else out there having the same
>> problem?  In any event, I would appreciate it if the entire source could
>> be posted again, this time with the files uuencoded first and then shar'ed.
>> {...decvax,ucbvax,ihnp4}!trwrb!sansom
>Try
>:%s\[/^V^[[/g
>to fix the problem.  It worked for us.
>I believe somebody's uucp filtered out the escape codes.

Please, please, people... when submitting sources to net or mod groups remember
that nonprintable characters (even with their 8th bit low) are very likely to
be swallowed by mailers, gateways, line eaters, and/or news software.  Surely
it can't be much harder to do:

	printf("Foo %csomecrazycode bar\n",(char)033);

than

	printf("Foo ^[somecrazycode bar\n");

and surely there are C compilers out there which don't like unprintable
characters, either!
-- 
 -------------------------------    Disclaimer:  The views contained herein are
|       dan levy | yvel nad      |  my own and are not at all those of my em-
|         an engihacker @        |  ployer or the administrator of any computer
| at&t computer systems division |  upon which I may hack.
|        skokie, illinois        |
 --------------------------------   Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa,
						vax135}!ttrdc!ttrda!levy