Skip Menu |
 

This queue is for tickets about the PerlIO-eol CPAN distribution.

Report information
The Basics
Id: 123250
Status: new
Priority: 0/
Queue: PerlIO-eol

People
Owner: Nobody in particular
Requestors: maurice [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



X-RT-Interface: Web
MIME-Version: 1.0
Message-ID: <rt-4.0.18-4164-1507766534-1694.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1507766534-4164-1"
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 1697
Download (untitled) / with headers
text/plain 1.6k
Can someone help we understand what I'm doing wrong with this module? I'm reading in a DOS-generated text file on a linux system. This module is supposed to normalize the line-endings, right? Meaning, I shouldn't need to care that this file has lines terminated by \012\015 rather than just \015. But the parsing seems to be non-deterministic. Attached is a test script and test input file. One time I run it, I get: $VAR1 = [ 'B19-7048-3263', '618268', 'bob', '2488', 'mauriceg', 'M Schmitt', '1517.51', '2017-110-06 10:59:01-03', '', '2019-10-08', '2019110--15', 'MarriottsCClub Son Antem', '223199', '2019-10-04' ]; Next time I run it, I see: $VAR1 = [ 'B19-7048-3263', '618268', 'ob', '2488', 'maurice@g', 'M Schmitt', '1517.51', '2017-110-06 10:59:01-03', '', '20119-10-08', '2019110-15', 'MarriottsCClub Son Antem', '223199', '2019-10-04' ]; $ cat -t test.tsv booking_id^Iposting_id^Iowner_username^Iowner_user_id^Iowner_email^Iowner_fullname^Iowner_payout_amount^Iowner_payout_deadline^Ibroker^Izendesk_id^Icheckin^Icheckout^Iresort_name^Iowner_transaction^Iowner_payout_date^M B19-7048-3263^I618268^Ibob^I2488^Imaurice@g^IM Schmitt^I1517.51^I2017-10-06 10:59:01-03^I^I^I2019-10-08^I2019-10-15^IMarriotts Club Son Antem^I123199^I2019-10-04^M What the heck am I doing wrong? Also, where's the best place to discuss this module? I see several github repos but not sure which is official.
Subject: test.tsv
MIME-Version: 1.0
Content-Type: text/tab-separated-values; name="test.tsv"
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline; filename="test.tsv"
Content-Transfer-Encoding: binary
Content-Length: 353
Download test.tsv
text/tab-separated-values 353b
booking_id posting_id owner_username owner_user_id owner_email owner_fullname owner_payout_amount owner_payout_deadline broker zendesk_id checkin checkout resort_name owner_transaction owner_payout_date B19-7048-3263 618268 bob 2488 maurice@g M Schmitt 1517.51 2017-10-06 10:59:01-03 2019-10-08 2019-10-15 Marriotts Club Son Antem 123199 2019-10-04
Subject: try
MIME-Version: 1.0
Content-Type: application/octet-stream; name="try"
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline; filename="try"
Content-Transfer-Encoding: base64
Content-Length: 280
Download try
application/octet-stream 280b

Message body not shown because it is not plain text.

MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-4164-1507766534-1694.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-4164-1507766534-1694.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-27839-1507767949-1701.123250-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 185
Download (untitled) / with headers
text/plain 185b
I've tried many versions going back to PerlIO::eol 0.10. Tried it on Perls 5.18, 5.24, and 5.27.4. All on Linux Mint 17. I think I must not be understanding correct use of the module?


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.