martin.zin...@deutsche-boerse.com wrote:
Hello Colleagues,

I am currently trying to drag our development team kicking and screaming into the century of the fruitbat, but what looks like a bug in 5.10.1 and 5.12.0 is a stumbling block.

Problem description:

If you open a text file with Carriage return carriage control for output (based off an existing file) and populate the new file with longer records, at some point gratuitous line breaks are added to the file.

This does not happen with either Perl 5.8.0 on Alpha, nor Perl 5.8.5 on Itanium (in that case the hp build). It does happen with both 5.10.1 and 5.12.0 on Itanium.

The bug should be present in the older 5.8.0, it just may be something is causing you to miss it.

The issue is that the pipe emulation code in perl adds extra new-lines to output from subprocesses.

The size of the mailbox buffer may have something to do with when the new-line is added. It may be that something changed there. In PERLVMS.POD, it documents that PERL_MBX_SIZE controls this with a default of 512 bytes.

I do not recall any changes to that code since I started working with Perl internals, and that was with perl 5.8.6.

The only changes that I can recall is that the size of the command buffer and parameters was adjusted to match what VMS supports, and there were some improvements in launching subcommands.

But obviously something is different between the two versions.

Regards,
-John
wb8...@qsl.net
Personal Opinion Only

Reply via email to