Acknowledgement sent
to Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>:
New Bug report received and forwarded. Copy sent to Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>.
(Mon, 29 Sep 2014 12:03:01 GMT) (full text, mbox, link).
From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
To: submit@pari.math.u-bordeaux.fr
Subject: \r cannot read long file names
Date: Mon, 29 Sep 2014 13:47:17 +0200
Package: pari
Version: 2.7.2
Hello Karim,
\r cannot deal with very long filenames:
? system(Str("echo Pi >",100!));
? 100!
%2 = 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
? \r 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
*** get_sep: argument too long (< 128 chars).
? read("93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000")
%3 = 3.1415926535897932384626433832795028842
The source code says
src/language/default.c
#ifdef MAXPATHLEN
# define GET_SEP_SIZE MAXPATHLEN
#else
# define GET_SEP_SIZE 128
#endif
but MAXPATHLEN is not defined.
Cheers,
Bill.
Information forwarded
to bug-submit-list@pari.math.u-bordeaux.fr: Bug#1616; Package pari.
(Mon, 29 Sep 2014 20:03:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>:
Extra info received and forwarded to list.
(Mon, 29 Sep 2014 20:03:02 GMT) (full text, mbox, link).
To: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>,
1616@pari.math.u-bordeaux.fr
Subject: Re: Bug#1616: \r cannot read long file names
Date: Mon, 29 Sep 2014 21:49:01 +0200
* Bill Allombert [2014-09-29 14:03]:
> \r cannot deal with very long filenames:
>
> ? system(Str("echo Pi >",100!));
> ? 100!
> %2 = 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
> ? \r 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
> *** get_sep: argument too long (< 128 chars).
Fix in commit 43d88cb9. (We may assume that PARI stack is available, so
use it instead of a fixed static buffer.)
Thanks !
K.B.
--
Karim Belabas, IMB (UMR 5251) Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation http://www.math.u-bordeaux1.fr/~kbelabas/
F-33405 Talence (France) http://pari.math.u-bordeaux1.fr/ [PARI/GP]
`
Reply sent
to Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>:
You have taken responsibility.
(Sat, 01 Nov 2014 15:18:02 GMT) (full text, mbox, link).
Notification sent
to Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>:
Bug acknowledged by developer.
(Sat, 01 Nov 2014 15:18:02 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.