Forum OpenACS Q&A: Response to CRLF Mac *nix DOS conversions

Collapse
Posted by MaineBob OConnor on

Hi Torben

    "...Know that tcl automatically recognizes EOLs for Mac, *nix and MSDos systems. So you can create a short tcl script that automatically reads the file line by line..."

A better solution would be for tcl to automatically recognize the Mac CR the same way it recognizes the *nix LF character. It appears that *nix just totally ignores the CR which is why Win/DOS files with CRLF work just fine.

How deep do we have to go to make this work? Is it just an issue with .adp files?

Here is the ideal:

  • CR (by itself) -> One New Line
  • LF (by itself) -> One New Line
  • CRLF (pair) -> One New Line

-Bob