bugGNU Octave - Bugs: bug #57013, rats inserts '\0' characters in to...

 
 

bug #57013: rats inserts '\0' characters in to output string when # of columns exceed screen width

Submitted by:  Rik <rik5>
Submitted on:  Sun 06 Oct 2019 08:18:25 PM UTC  
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 06 Oct 2019 08:20:45 PM UTC, comment #1: 

This can also be viewed as a manifestation of bug #57005, in that we are using the print routines from the interpreter for rats() and those routines insert extra information about columns, insert extra blank lines ('\0') between blocks of output, etc.

The two bugs together suggest the entire algorithm needs to change.

Rik <rik5>
Project Administrator
Sun 06 Oct 2019 08:18:25 PM UTC, original submission:  

Sample code to reproduce:

s = rats (ones (2, 125), 10)
s =

Columns 1 through 9:^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@
           1           1           1           1           1           1           1           1           1
           1           1           1           1           1           1           1           1           1
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@
Columns 10 through 18:^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@

Or for extra confirmation

double (s)
ans =

Columns 1 through 17:

    32    67   111   108   117   109   110   115    32    49    32   116   104   114   111   117   103
     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0
    32    32    32    32    32    32    32    32    32    32    32    49    32    32    32    32    32
    32    32    32    32    32    32    32    32    32    32    32    49    32    32    32    32    32
     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0
    32    67   111   108   117   109   110   115    32    49    48    32   116   104   114   111   117
     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0

Rik <rik5>
Project Administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5