How to filter out stray '\240' in program sources?

3 posts / 0 new
Last post
hypex
hypex's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 2011-09-09 16:20
How to filter out stray '\240' in program sources?

Hi guys.

I tried to copy some source from here for compiling and ran into the old "stray '\240' in program" error. I tried MicroGoldED, MutliEdit, ­NotePad, Ed and Memacs. None filtered it out nor did I see any option to filter it down to basic ASCII.

I also tried my own program that cuts off the high bit and can replace non-ASCII chars but found it just messes up all the lines and caused an error in the code.

So what Amiga/OS4 programs are there or editors that can save a program in generic ASCII?

thomas
thomas's picture
Offline
Last seen: 4 hours 22 min ago
Joined: 2011-05-16 14:23
Re: How to filter out stray '\240' in program sources?

I use CygnusEd.

Change all Alt-Space to Space.

I am quite sure that some of the free editors you mentioned can do this, too.

You might have to disable "Text Gadget Filter" in Prefs/IControl.

hypex
hypex's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 2011-09-09 16:20
Re: How to filter out stray '\240' in program sources?

I'll test this, thanks. GoldED has some kind of CygnusEd mode. On Linux it was easy enough, just load into a text editor and save out. Somehow doing this wasn't as easy on the Amiga. Perhaps I need some kind of programmer text mode that masks it to pure ASCII or UTF-8.

Log in or register to post comments