This queue is for tickets about the Subtitles CPAN distribution.

Report information
The Basics
Id:
74150
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
1.03
Fixed in:
(no value)



Subject: subtitles in SRT UTF-8 with BOM considered invalid
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 413
If I give a file in SRT format with UTF-8 character encoding with the BOM (0xEF, 0xBB, 0xBF) at the start of the file to "subs", it yields an error: {{{ Error loading '...':Invalid line numbering at line 1 }}} If I delete the BOM, the error is gone. According to http://en.wikipedia.org/wiki/Byte_order_mark , the Unicode Standard does permit the BOM in UTF-8. "subs" should read subtitles in UTF-8 with the BOM.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: multipart/mixed; boundary="----------=_1327094973-14878-27"
Message-ID: <rt-3.8.HEAD-14878-1327094973-931.74150-0-0@rt.cpan.org>
X-RT-Original-Encoding: utf-8
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 61
Please check the patch, it works for me but I need the proof.
MIME-Version: 1.0
Subject: diff
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: application/octet-stream; name="diff"
Content-Disposition: inline; filename="diff"
Content-Transfer-Encoding: base64
Content-Length: 1564

Message body not shown because it is not plain text.

MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10809-1329225795-1363.74150-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 13
fixed in 1.04


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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