|
|
last edited 17 years ago by kratt6 |
1 2 | ||
Editor:
Time: 2007/11/17 23:05:48 GMT-8 |
||
Note: |
changed: - )hist )write foo.input does not properly handle windows CR/LF in output. From unknown Mon Jan 17 23:56:01 -0600 2005 From: Date: Mon, 17 Jan 2005 23:56:01 -0600 Subject: additional comments Message-ID: <20050117235601-0600@page.axiom-developer.org> > > When saving files from within Axiom, say > > )hist )write foo.input > > The file saved is still using Unix convention. One has to use > unix2dos to convert it to insert the missing LF/CR (forget > which) before editing with say Notepad. Linux uses the unix convention of a LF code to mark the ends of lines. Windows uses the combination of a CR and a LF code. Legacy windows applications like Notepad and old MSDOS applications do not support the unix format but almost all newer windows applications (e.g. Wordpad) and ported linux programs have no problem. I recommend deleting "good old" Notepad from your system and installing one of the many very good open source text editors that support the unix convention and are available for free. Some of these are configurable to produce either unix or windows compatible line endings when saving files. > > Can this be done automatically and transparently? > Yes, for the Windows version it is probably possible to make sure that most things that are written out to files in text format have the standard windows line endings. > Of course, for portability, the reverse should be automatic > too (but linux users are more adept to make the conversion > than Windows users and a few extra LF/CRs are easily removed > manually for small files). The windows version of Axiom already does this, i.e. it ignores all CR codes in input text files. For portability the linux version could also safely do this (maybe next release?). So it wouldn't hurt to add the CR on the windows version for maximum compatibility. > > Not anything urgent, just a wishful request. > I would like to hear from other windows users about how important they think "Notepad compatibility" really is. > Thanks very much for the Windows version. > From unknown Sat Aug 20 07:41:42 -0500 2005 From: unknown Date: Sat, 20 Aug 2005 07:41:42 -0500 Subject: property change Message-ID: <20050820074142-0500@page.axiom-developer.org> Category: Axiom on Windows => Axiom Documentation Severity: normal => wishlist Status: open => postponed
)hist )write foo.input does not properly handle windows CR/LF in output.
When saving files from within Axiom, say
)hist )write foo.input
The file saved is still using Unix convention. One has to use unix2dos to convert it to insert the missing LF/CR (forget which) before editing with say Notepad.
Linux uses the unix convention of a LF code to mark the ends of lines. Windows uses the combination of a CR and a LF code. Legacy windows applications like Notepad and old MSDOS applications do not support the unix format but almost all newer windows applications (e.g. Wordpad) and ported linux programs have no problem.
I recommend deleting "good old" Notepad from your system and installing one of the many very good open source text editors that support the unix convention and are available for free. Some of these are configurable to produce either unix or windows compatible line endings when saving files.
Can this be done automatically and transparently?
Yes, for the Windows version it is probably possible to make sure that most things that are written out to files in text format have the standard windows line endings.
Of course, for portability, the reverse should be automatic too (but linux users are more adept to make the conversion than Windows users and a few extra LF/CRs? are easily removed manually for small files).
The windows version of Axiom already does this, i.e. it ignores all CR codes in input text files. For portability the linux version could also safely do this (maybe next release?). So it wouldn't hurt to add the CR on the windows version for maximum compatibility.
Not anything urgent, just a wishful request.
I would like to hear from other windows users about how important they think "Notepad compatibility" really is.
Thanks very much for the Windows version.Category: Axiom on Windows => Axiom Documentation Severity: normal => wishlist Status: open => postponed