Please find attached a patch applied to the communications package in
Debian (upcoming Debian release 1.1.1-1).

More details about the purpose of the patch are given in the patch
header.

Best,
Description: Fix bug in oct2dec.m with big numbers
 Without this patch, the following test fails:
   assert (oct2dec (77777777), 2^24 - 1)
 This is because 77777777 will be converted to "7.77778e+07" by numstr.
 .
 Note that, even with this patch, the test will still fail on Octave 3.6.1
 (but not with subsequent Octave releases), because of a bug in base2dec
 (http://savannah.gnu.org/bugs/?func=detailitem&item_id=35621).
Author: Sébastien Villemot <sebastien.ville...@ens.fr>
Forwarded: no
Last-Update: 2012-05-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/inst/oct2dec.m
+++ b/inst/oct2dec.m
@@ -37,7 +37,7 @@
   d = zeros (size (c));
   l = size (c, 2);
   for k = 1:l
-    str = num2str (c(:,k));
+    str = num2str (c(:,k), "%d");
     d(:,k) = base2dec (str, 8);
     if (any (isnan (d(:,k))))
       error ("oct2dec: c must be an octal matrix");
-- 
Sébastien Villemot
Researcher in Economics & Debian Maintainer
http://www.dynare.org/sebastien
Phone: +33-1-40-77-84-04 - GPG Key: 4096R/381A7594

Attachment: pgp1dhRUN2Kr1.pgp
Description: PGP signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to