[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Merlin source unreadable under Mac



Andy McFadden - fadden@fadden.com :

> You need to strip the high bits off.  It's actually not pure high
> ASCII, because some characters (e.g. space) are stored without the
> high bit set. 
> 
> (CiderPress will identify them and convert them automatically, but
> that doesn't do you much good on a Mac.)
> 
> 
> Under Linux, or anything else with a C compiler and a command line:
> 
> #include <stdio.h>
> 
> int main(void)
> {
>     int ic;
>     while ((ic = getchar()) != EOF)
>         putchar(ic & 0x7f);
>     return 0;
> }
> 
> compile it as "histrip" and use "./histrip < infile > outfile".
> 

Thanks a lot !