Skip Menu |
 

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 29303
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Math-BigInt

People
Owner: TELS [...] cpan.org
Requestors: alexander.danel [...] gmail.com
Cc:
AdminCc:

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



Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 240504D803E for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 11 Sep 2007 15:46:02 -0400 (EDT)
Received: (qmail 28104 invoked by alias); 11 Sep 2007 19:46:00 -0000
Received: from rv-out-0910.google.com (HELO rv-out-0910.google.com) (209.85.198.185) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 11 Sep 2007 12:45:54 -0700
Received: by rv-out-0910.google.com with SMTP id k20so1555657rvb for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 11 Sep 2007 12:45:50 -0700 (PDT)
Received: by 10.141.171.6 with SMTP id y6mr2534778rvo.1189539949956; Tue, 11 Sep 2007 12:45:49 -0700 (PDT)
Received: by 10.140.201.21 with HTTP; Tue, 11 Sep 2007 12:45:49 -0700 (PDT)
Delivered-To: cpan-bug+math-bigint [...] diesel.bestpractical.com
MIME-Version: 1.0
Subject: BigInt-1.87 fails "test" on cygwin
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=eglMMoCCN0mIgjvlc+6A/uWRe9i7AGfRrYDeBj6C51YVU+l19sufO9MM14R/A5Y4eCKdxundN/n6lDXQD2thUrTTbt+i6MnyXERmGfBxMFyhW8i2iXYb5EOgGW1G1FiRTtEHdBLqGcHCsuNvX0YAS90nzwPkVVS7Zzb+bQSAhWE=
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VERIFIED,DK_SIGNED,HTML_MESSAGE,SPF_PASS
Return-Path: <alexander.danel [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=EkyPe9h+Ac/UeBmCwQBRgugr2WLLYYFvxced18Ha/ZQ=; b=VBI+V9yeMv0/2k0XJcTKlfh7TmDtPuPKIgw7QAVaPKHcBhsmHLX5axUpvw14NEy1CpVYzcyc6hh993J6bTecKFdytnbQppEGId1rSLPUPJSxTDiIH/XppR/sH1JGCD6O/dkBR0l/KCOBLR92CJIEog0t6Rg2zffQ6p99nz0xGyY=
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-Math-BigInt [...] rt.cpan.org
Date: Tue, 11 Sep 2007 14:45:49 -0500
Message-Id: <1e80af610709111245m3a03d12ay87d81ae80a1905ca [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="----=_Part_7174_30492348.1189539949923"
To: bug-Math-BigInt [...] rt.cpan.org
From: "Alexander Danel" <alexander.danel [...] gmail.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 95
The Math::BigInt-1.87 has lots and lots of error under "make test" for Cygwin on Windows-2000.
Content-Type: text/html; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 117
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 3A0874D809A for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 11 Sep 2007 18:44:51 -0400 (EDT)
Received: (qmail 28206 invoked by alias); 11 Sep 2007 22:33:32 -0000
Received: from rv-out-0910.google.com (HELO rv-out-0910.google.com) (209.85.198.188) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 11 Sep 2007 15:33:22 -0700
Received: by rv-out-0910.google.com with SMTP id k20so10311rvb for <bug-Math-BigInt [...] rt.cpan.org>; Tue, 11 Sep 2007 15:33:18 -0700 (PDT)
Received: by 10.141.159.13 with SMTP id l13mr1485111rvo.1189549998517; Tue, 11 Sep 2007 15:33:18 -0700 (PDT)
Received: by 10.140.201.21 with HTTP; Tue, 11 Sep 2007 15:33:18 -0700 (PDT)
Delivered-To: cpan-bug+math-bigint [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #29303] BigInt-1.87 fails "test" on cygwin
MIME-Version: 1.0
Return-Path: <alexander.danel [...] gmail.com>
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VERIFIED,DK_SIGNED,HTML_MESSAGE,SPF_PASS
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=YYbWbkcJQiCxff5BJGiaEmisbuQkM9Z2A8iu0VhsnzDYG2AZNT5+gWe9zlFcE03r7d+oPesdEvRuAj/iKtw78cLzPZGwx3YUdDeyKoldpWlpPLg6Qpk1nu1FlSK66IU9A9fkuMv9yyHdhtQf72cAcASZITzrGQRIGnHF5zs595A=
X-Original-To: bug-Math-BigInt [...] rt.cpan.org
X-Spam-Check-BY: la.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=digK5YFN4d7Gy8QlIT92xnjrLJAMFF3PqN7DlhX9TKM=; b=VYfmQcrHClMTSJsDun8yKpmdOAmOQvQjg2HCWRAv3GgRrMXmvLItAD/0iyYIYp8JDlVv4DB1cmci7C44ZwWEFCVcfDNatX9QXiiwzKVaxnzdvja8jcbsh1aEL+Z31U+mgs8lJ9xkiLK9rJ4i1pK+4ZauGbMMgnuVr/Qwy6TA6Gk=
Date: Tue, 11 Sep 2007 17:33:18 -0500
Message-Id: <1e80af610709111533xf4394fbx1ea1d2e5bcd1a1be [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="----=_Part_7774_29417575.1189549998499"
To: bug-Math-BigInt [...] rt.cpan.org
From: "Alexander Danel" <alexander.danel [...] gmail.com>
RT-Message-ID: <rt-3.6.HEAD-4672-1189550697-939.29303-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
X-RT-Original-Encoding: utf-8
Content-Length: 1180
Download (untitled) / with headers
text/plain 1.1k
The errors seem to be due to incorrect interpretation of new-lines at the ends of strings. Here is an example: Expected: "1\r" The backslash 'r' seems to be the difference. # - - - - - - - - - - - - - - On 9/11/07, Bugs in Math-BigInt via RT <bug-Math-BigInt@rt.cpan.org> wrote: Show quoted text
> > > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "BigInt-1.87 fails "test" on cygwin", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #29303]. Your ticket is accessible > on the web at: > > http://rt.cpan.org/Ticket/Display.html?id=29303 > > Please include the string: > > [rt.cpan.org #29303] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > bug-Math-BigInt@rt.cpan.org > > ------------------------------------------------------------------------- > The Math::BigInt-1.87 has lots and lots of error under "make test" for > Cygwin on Windows-2000. > >
Content-Type: text/html; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 2145
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-4672-1189550697-939.29303-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-27482-1189942593-33.29303-0-0 [...] rt.cpan.org>
References: <1e80af610709111533xf4394fbx1ea1d2e5bcd1a1be [...] mail.gmail.com> <rt-3.6.HEAD-4672-1189550697-939.29303-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 397
Download (untitled) / with headers
text/plain 397b
On Tue Sep 11 18:44:57 2007, alexander.danel@gmail.com wrote: Show quoted text
> The errors seem to be due to incorrect interpretation of new-lines at the > ends of strings. Here is an example:
This happens because the .t files became somehow converted to \r\n line endings and the chomp() in the .t files fails to remove the \r (0x0d) character. Will be fixed in the v1.88 release. Thanx for your report! Tels
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VERIFIED,DK_SIGNED,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-27482-1189942593-33.29303-6-0 [...] rt.cpan.org>
X-Mailer: Microsoft Office Outlook 11
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: us-ascii
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 5F41E4D803E for <bug-Math-BigInt [...] rt.cpan.org>; Sun, 16 Sep 2007 23:23:05 -0400 (EDT)
Received: (qmail 2753 invoked by alias); 17 Sep 2007 03:23:04 -0000
Received: from py-out-1112.google.com (HELO py-out-1112.google.com) (64.233.166.176) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sun, 16 Sep 2007 20:22:52 -0700
Received: by py-out-1112.google.com with SMTP id u77so2909355pyb for <bug-Math-BigInt [...] rt.cpan.org>; Sun, 16 Sep 2007 20:22:48 -0700 (PDT)
Received: by 10.35.85.16 with SMTP id n16mr5747181pyl.1189999368534; Sun, 16 Sep 2007 20:22:48 -0700 (PDT)
Received: from dsoftmsi ( [64.81.229.203]) by mx.google.com with ESMTPS id f57sm6478119pyh.2007.09.16.20.22.46 (version=SSLv3 cipher=RC4-MD5); Sun, 16 Sep 2007 20:22:47 -0700 (PDT)
Delivered-To: cpan-bug+math-bigint [...] diesel.bestpractical.com
Subject: RE: [rt.cpan.org #29303] BigInt-1.87 fails "test" on cygwin
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:in-reply-to:thread-index:x-mimeole; b=ML0YKXGc8bXsNbQJG6/7ZiC3An3arBPunMBemUzDuXrkxD4AFQ8huwZJav0UcUfyk7swhkpK/MNYPdOdgT1AE+Yn9lvyDkFfPWGlBuln8Bo+PBOIjyT2rMaqUrtuNfRaT0XfHS33KuHN0ML8swiuzjEtHi+KQBN9T6P79gz9WS0=
Return-Path: <alexander.danel [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:in-reply-to:thread-index:x-mimeole; bh=z0L1qcqSyFE96sckb5LtbSCkrxs35jvYUotDf7cE9Rc=; b=rqydtVI8UvUwAhgk3+Ku2C3rToCeVEHCkLvC7vGPCD+3RjZ/I6QopNjDrzJpD6x+RIuTnjS9Ef/erPmZ35rDIansXTgTIW3Vf+1MLtCi+byOtRaAY4yrij3IWQw+LOjCq1Jgi0MxGIFnCJ/gMF9yXz0jLD43kPvgLjllMXVofy4=
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-Math-BigInt [...] rt.cpan.org
Thread-Index: Acf4VdkBO8QkpimOThGI3kLqpURoSgAg0ZPg
Date: Sun, 16 Sep 2007 22:26:31 -0500
Message-Id: <00c201c7f8da$8ba82500$0200a8c0 [...] dsoftmsi>
X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1896
To: <bug-Math-BigInt [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
From: "Alexander Danel" <alexander.danel [...] gmail.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-27760-1189999393-1628.29303-0-0 [...] rt.cpan.org>
Content-Length: 1317
Download (untitled) / with headers
text/plain 1.2k
This is actually I bigger problem, because it happens with many modules under the following context: * Download the module to a MicroSoft PC from CPAN web site (CR-LF). * Install the module in a Cygwin system (LF only). It might also occur when using the "cpan" automated facility; it certainly happened when I did a web download and manual build. Any module that has a self referential test is at risk. I've also seen it happen for a module that has a self-referential method of extracting constants from the POD documentation. So really, this problem needs to be escalated to the CPAN gurus, in my opinion. Can you do that? Alexander Show quoted text
-----Original Message----- From: via RT [mailto:bug-Math-BigInt@rt.cpan.org] Sent: Sunday, September 16, 2007 6:37 AM To: alexander.danel@gmail.com Subject: [rt.cpan.org #29303] BigInt-1.87 fails "test" on cygwin <URL: http://rt.cpan.org/Ticket/Display.html?id=29303 > On Tue Sep 11 18:44:57 2007, alexander.danel@gmail.com wrote:
> The errors seem to be due to incorrect interpretation of new-lines at the > ends of strings. Here is an example:
This happens because the .t files became somehow converted to \r\n line endings and the chomp() in the .t files fails to remove the \r (0x0d) character. Will be fixed in the v1.88 release. Thanx for your report! Tels
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00
In-Reply-To: <rt-3.6.HEAD-27760-1189999393-1628.29303-5-0 [...] rt.cpan.org>
References: <RT-Ticket-29303 [...] rt.cpan.org> <00c201c7f8da$8ba82500$0200a8c0 [...] dsoftmsi> <rt-3.6.HEAD-27760-1189999393-1628.29303-5-0 [...] rt.cpan.org>
X-Pair-Authenticated: 84.63.27.50
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUyTo9PgLt6dK1xgaOmqcl6wOuurOKkvs6+wN+v4ffY2/jb3enu7ffy+v77+f/9//zm1tSJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH1wYNDzo0sYTGuwAAADx0RVh0Q29tbWVudAAoYykgYnkgVGVscyBibG9vZGdhdGUuY29tLiAyMDAzIEFsbCBSaWdodHMgUmVzZXJ2ZWQunDFKTgAAAb5JREFUOMvlk79u2zAQxrl0rwfvgV8hQ16Ag1cPGjS2AYQ8QIAUyBoEgvcMHrwbjDIHiNQ+gHXUXthH7YV0fAJSPdJ/4jbIAwS5QYDuR30k7/skhndKfHrgwsN09j/gvXUYy/4DHBHt+uhOAXlqOqKGGgvQngJLANRhp7eE1B4BL+2qugSoOiR6lfJhdVXGQuqPADf1L6hrmcvbxwYNC+yBrgDK8oeU8qZs+vb1HrWuWeNuKqe3Ohz8cBFRbp6rjbqTcvrEWyPZHXGiXM/VKue+KgAAjebtXcvgRSkGWXY5Oee6uM4L6MMIBKj8Psu+n4lQ45vrc5nPAbEVSvHy7Gwy+ToSowTNSir1qPmLoHSfTbKrbyMxTpb+z2quIEht4x5XuZrNxJd0aXCdFzpIGQRGav6UzMQ4Xfph+1LpwRkGuAVQBT4ks2SB7RAmPQy9INdiD+ui/52k6QIHw/0w4+CHM1Sy7kO6WKIntuwA2MG6ItwsfqKhWHYPiDoI80CM3ehWDAO/cb/SQcV6GyccgY8A2OPg/26+u1xFEK7Fods7cgCcK9NHw+k0iXxgbIjs2+xyBPkr/xZ4PIp/zJ/zL9K+/Fxg8Z/MAAAAAElFTkSuQmCC
Content-Type: multipart/signed; boundary="nextPart1392797.8jo4AFEzOj"; protocol="application/pgp-signature"; micalg=pgp-sha1
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 3F65B4D80A4 for <bug-Math-BigInt [...] rt.cpan.org>; Mon, 17 Sep 2007 12:24:38 -0400 (EDT)
Received: (qmail 11520 invoked by alias); 17 Sep 2007 16:24:37 -0000
Received: from relay03.pair.com (HELO relay03.pair.com) (209.68.5.17) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Mon, 17 Sep 2007 09:24:27 -0700
Received: (qmail 97712 invoked by uid 0); 17 Sep 2007 16:24:23 -0000
Received: from unknown (HELO bloodgate.com) (unknown) by unknown with SMTP; 17 Sep 2007 16:24:23 -0000
Delivered-To: cpan-bug+math-bigint [...] diesel.bestpractical.com
User-Agent: KMail/1.9.6
Subject: Re: [rt.cpan.org #29303] BigInt-1.87 fails "test" on cygwin
Return-Path: <nospam-abuse [...] bloodgate.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-Math-BigInt [...] rt.cpan.org
Date: Mon, 17 Sep 2007 18:23:11 +0200
Message-Id: <200709171823.11675 [...] bloodgate.com>
To: bug-Math-BigInt [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Tels <nospam-abuse [...] bloodgate.com>
RT-Message-ID: <rt-3.6.HEAD-27798-1190046286-1558.29303-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 2787
Download (untitled) / with headers
text/plain 2.7k
Moin, On Monday 17 September 2007 05:23:14 Alexander Danel via RT wrote: Show quoted text
> Queue: Math-BigInt > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=29303 > > > This is actually I bigger problem, because it happens with many modules > under the following context: > > * Download the module to a MicroSoft PC from CPAN web site (CR-LF). > * Install the module in a Cygwin system (LF only).
No, modules on CPAN are LF, well, at least modules that are created on Linux systems - as are mine. What likely is that you unzipped the module under Windows with WinZIP, and this (or something similiar) converted the line endings. If you run: cpansign --verify inside Cygwin, I expect the signature check to fail. In this case one could argue that the module got altered, and is thus broken per se, but I think making it robust against that line ending change is much easier. However, any other changes are also likely to break the module. You cannot simple take the module or .t files, alter them, and then expect anything still to work. For instance, re-encoding them in something else than UTF-8 would f.i. break any module that has Unicode UTF-8 characters in its source. Show quoted text
> It might also occur when using the "cpan" automated facility; it > certainly happened when I did a web download and manual build. Any > module that has a self referential test is at risk.
Well, any module that is altered after download is at risk :) Show quoted text
> I've also seen it > happen for a module that has a self-referential method of extracting > constants from the POD documentation. > > So really, this problem needs to be escalated to the CPAN gurus, in my > opinion. Can you do that?
I don't think so, as the problem is a windows problem, not a CPAN problem. However, you are right, modules that read their own data (or whatever data) must expect line endings of either CR-LF, LF or CR (mac) format and many many don't do. I fear that the only remedy is to bug report each module where this happens. What would really help is if someone could setup a cpan-tester machine that purposefull converts .t files or .pm files to CR-LF and then runs the testsuite - this would catch most of these problems. (However, you will get people arguing that their module works only in unaltered form as downloaded from CPAN :) It might also be a good idea to amend the documentation about chomp(). I sent an email to perl5-porters asking about this topic. All the best, Tels -- Signed on Mon Sep 17 18:13:00 2007 with key 0x93B84C15. View my photo gallery: http://bloodgate.com/photos PGP key on http://bloodgate.com/tels.asc or per email. "COMPASS [for the CDC-6000 series] is the sort of assembler one expects from a corporation whose president codes in octal." -- J.N. Gray
Content-Type: application/pgp-signature
Content-Length: 481
Download (untitled)
application/pgp-signature 481b

Message body not shown because it is not plain text.

MIME-Version: 1.0
In-Reply-To: <1e80af610709111245m3a03d12ay87d81ae80a1905ca [...] mail.gmail.com>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
References: <1e80af610709111245m3a03d12ay87d81ae80a1905ca [...] mail.gmail.com>
Message-Id: <rt-3.6.HEAD-18317-1208685202-1895.29303-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 143
Download (untitled) / with headers
text/plain 143b
This bug should be resolved with the release of v1.88 - if it isn't, please reply to this email to re-open the bug. Thank you for your report!


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.