bugGNU Octave - Bugs: bug #34347, weekday.m has incorrect newlilne -...

 
 

bug #34347: weekday.m has incorrect newlilne - line 63

Submitter:  Stein Arild Moi <neistridlar>
Submitted:  Tue 20 Sep 2011 06:49:03 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 20 Sep 2011 07:10:22 PM UTC, comment #1: 

Thanks, I pushed this change instead on the stable branch:

    http://hg.savannah.gnu.org/hgweb/octave/rev/796dc1d75e06


Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Tue 20 Sep 2011 06:49:03 PM UTC, original submission:  


>>> [a, b] = weekday(date, 'long')
error: number of columns must match
>>>error: called from:
error:   /usr/share/octave/3.2.3/m/time/weekday.m at line 63, column 13


The error message points to '=' on line 63:


     names = {"Sunday" "Monday" "Tuesday" "Wednesday" "Thursday"
               "Friday" "Saturday"};


removing the newline fixes the problem:


      names = {"Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday"};


Stein Arild Moi <neistridlar>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #24001:  weekday.m.working added by neistridlar (3KiB - application/octet-stream - This file works as expected)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-20 jordigh StatusNone Fixed
        Open/ClosedOpen Closed
        Release3.2.3 3.4.2
        Summaryweekday.m is broken - line 63 weekday.m has incorrect newlilne - line 63
    2011-09-20 neistridlar Attached File- Added weekday.m.working, #24001
        Carbon-Copy- Added neistridlar

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code