bugGNU Octave - Bugs: bug #40307, miscellaneous: units.m cannot...

 
 

bug #40307: miscellaneous: units.m cannot parse output of units 2.01

Submitter:  Clemens Buchacher <drizzd>
Submitted:  Sat 19 Oct 2013 10:48:17 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Duplicate Assigned to:  None
Originator Name:  Clemens Buchacher Open/Closed:  * Closed
Release:  * 3.6.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 19 Oct 2013 03:18:04 PM UTC, comment #2: 

Hi guys, closing as a duplicate since this has already been reported. See bug #38270.

Mike Miller <mtmiller>
Group Member
Sat 19 Oct 2013 03:08:27 PM UTC, comment #1: 

I can't reproduce this using units 1.8.8 in Debian Wheezy (currently stable release).


octave> units ("cm", "in", 183.3)
ans =  72.165


Carnë Draug <carandraug>
Group Member
Sat 19 Oct 2013 10:48:17 AM UTC, original submission:  

I received this bug report from an Arch Linux user and am forwarding it here. I can reproduce it, and looking at the code it seems that units.m does not expect the units command to output "Currency exchange rates ..." as the first line, and would work correctly otherwise.

% pacman -Q units octave-miscellaneous
units 2.01-2
octave-miscellaneous 1.2.0-1

When attempting to use the units() function (which uses the GNU Units program), I get the following. I'm guessing this is an issue with the version of GNU Units that ArchLinux currently ships, but I have no other Linux distros installed in order to validate this.

octave:1> pkg load miscellaneous
octave:2> units("cm", "in", 183.3)
error: parsing units output "Currency exchange rates from 2012-10-24

  • 0.39370079

/ 2.54
"
error: called from:
error: /usr/share/octave/packages/miscellaneous-1.2.0/units.m at line 49, column 18

Clemens Buchacher <drizzd>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by drizzd (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-19 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #38270

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code