[Info-vax] Basic again
Arne Vajhøj
arne at vajhoej.dk
Mon Mar 11 15:22:27 EDT 2024
On 3/11/2024 10:35 AM, Single Stage to Orbit wrote:
> On Mon, 2024-03-11 at 09:34 -0400, bill wrote:
>> I think what he wants is an explanation of why the behavior is
>> different than on any other machine. :-)
I wanted to know why it was different from Pascal and
different from "common expectation".
>> Yes, I tried it with other versions of basic and Pascal and got
>> the behavior Arne was looking for. Sadly, at t he moment I don't
>> have a VMS system running to play with it there.
>
> CGI is Unix and really wants LF+CR but VMS strips away one of these
> characters so it never looks like a LF+CR sequence at the other end.
>
> All that's needed is for him to output as raw rather than "cooked".
I had one problem with CGI and Apache.
I solved that problem by sending extra CRLF with Pascal.
And then I got a new problem because that solution did not work
with Basic.
And the Basic problem can be demonstrated with plan terminal
output.
If I could solve the original CGI Apache problem in a way that
did not require extra CRLF then that would make it work for
both Pascal and Basic.
But I would still be curious to know why Basic is eating that CRLF.
For the CGI problem I used Simons suggestion and moved on.
Instead of:
print "..." + chr$(13) + chr$(10)
print ""
then:
print "..." + chr$(13)
print chr$(10) + ""
Arne
More information about the Info-vax
mailing list