Re: How to load files with Mac line ending?

"Charles A. Cox" <[email protected]> Fri, 19 Aug 2005 07:32:43 -0700
Newsgroups gmane.lisp.allegro
Message-ID <[email protected]>
> From: Ronald Sudomo <[email protected]>
> Date: Thu, 18 Aug 2005 17:29:11 -0600
> 
> Is there an easy way to make ACL load files with Mac line endings?

One option is to set *locale* to use a mac convention composing
external-format:

 (setf (locale-external-format *locale*)
   (find-composed-external-format (find-external-format :e-cr)
				  (crlf-base-ef
				   (locale-external-format *locale*))))

This causes all streams opened (by load, compile-file, etc.) after
this point to be treated as "mac" streams.

	Charley
---
Charles A. Cox, Franz Inc.        555 12th Street, Suite 1450
Internet: [email protected]           Oakland, CA  94607
WWW: http://www.franz.com/        Phone: (510) 452-2000; FAX: (510) 452-0182