Arc Forumnew | comments | leaders | submitlogin
Fixing Windows problems
2 points by Blipo 6219 days ago | 2 comments
So, this has undoubtedly been figured out before, but I'm an incredible post whore. So here we go.

I noticed that a couple of things don't work properly on Windows - the HTTP server and blog tool. Here's a temporary fix to get them working for Windows:

Open blog.arc and change line 8 from

(= postdir* "arc/posts/" maxid* 0 posts* (table))

to

(= postdir* "arc\\posts\\" maxid* 0 posts* (table))

Then open srv.arc and change line 9 from

(= arcdir* "arc/" logdir* "arc/logs/" quitsrv* nil breaksrv* nil)

to

(= arcdir* "arc\\" logdir* "arc\\logs\\" quitsrv* nil breaksrv* nil)

All that needs to be done is '/' to '\\'. There are similar things in prompt.arc and strings.arc. I think it's a safe bet that they create problems as well.



4 points by absz 6219 days ago | link

Though I don't use Windows, I am told that the Anarki (which I do use), among other things, fixes these problems. (It's a git repository for Arc that anyone can push to and pull from; it fixes bugs and has extensions to the language.) See http://arclanguage.org/item?id=4951 for details.

-----

3 points by wfarr 6219 days ago | link

Yes, Anarki correctly handles parsing directories on all platforms.

-----