in reply to Re^2: CPAN module unit test issues: OS line endings (how?)
in thread CPAN module unit test issues: OS line endings

Most Windows tar utilities can, I think, be configured to convert the line endings to Windows format but I've been bitten by configuring tar that way.

Getting either Unix or Windows line endings in text files when on Windows should not present a problem (to mundane Perl code).

- tye        

  • Comment on Re^3: CPAN module unit test issues: OS line endings (tar)

Replies are listed 'Best First'.
Re^4: CPAN module unit test issues: OS line endings (tar)
by syphilis (Archbishop) on Sep 18, 2015 at 08:25 UTC
    Getting either Unix or Windows line endings in text files when on Windows should not present a problem (to mundane Perl code).

    I'm not suggesting otherwise.

    Cheers,
    Rob

      Yeah, I wasn't disagreeing with anything you said. Just pointing out why I think it unlikely to apply in this situation doesn't matter as far as how the code should work. Thanks.

      - tye        

        Just pointing out why I think it unlikely to apply in this situation

        I think you're mistaken. The OP has said: "So when my test data files were downloaded from CPAN on Windows, they still had Unix line endings and weren't being read in correctly"

        The point I raised in my initial response explained that the "test data files" still had those "Unix line endings" simply because the utility that unpacked those files did not perform the unix2dos line-ending conversions (and that unix2dos conversions were something that might or might not occur, depending upon the configuration of said utility).

        I'm not in the habit of submitting posts (correct or otherwise) to perlmonks that I believe to be inapplicable to the current thread .... well ... that is, unless I'm trying to be humourous.

        Note: I'm reading the OP's "... weren't being read in correctly as meaning " ... weren't being read in as intended".

        Cheers,
        Rob