[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Merlin source unreadable under Mac
- Subject: Re: Merlin source unreadable under Mac
- From: Zouplaz <pouet@pouet.com>
- Date: 25 Oct 2003 18:09:18 GMT
- Newsgroups: comp.sys.apple2
- Organization: Guest of ProXad - France
- References: <Xns941FBDEE621BAZoupla@213.228.0.133> <TRxmb.257$Wy2.2965@typhoon.sonic.net>
- User-agent: Xnews/5.04.25
- Xref: archiver1.google.com comp.sys.apple2:621
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 !