Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn a script created with a Windows editor execute correctly on the HP3000 ?

0
Posted

Why doesn a script created with a Windows editor execute correctly on the HP3000 ?

0

The problem you have encountered is the traditional cross-platform issue of text file line termination. There is no common standard for the end-of-line indicator : line termination is represented differently on different platforms. Many modern file transfer programs will convert text file line terminators automatically, but some will not. Warehouse uses the standard library fgets function to read a script, and that function is adapted to a specific platform. On MPE/iX, fgets uses the record size. On Unix, fgets looks for a Line Feed; on Windows, it looks for Carriage Return/Line Feed ; and on the Mac OS, Carriage Return. In this case, when you moved the text file from your PC to the HP3000, the end of line indicator was not converted from a Carriage Return/Line Feed to the format recognized by MPE/iX .

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123