[bug #68079] Webread fails with simple call

Rik <[email protected]>
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Update of bug #68079 (group octave):

             Assigned to:                    None => rik5

    _______________________________________________________

Follow-up Comment #4:

I probably did this so I'm assigning the bug to myself.  I will have a fix for
the 11.2 release.

The first part of Dmitri's patch is correct.  The classdef *weboptions* should
accept an empty value in order to remove a function handle *ContentReader*.

The second change can't be made because *disp* and *display* are different in
a classdef context.  *disp* is called by the interpreter to display an object
after it has already printed out information about the name of the variable.
*display* sends text directly to stdout.

If the change is made, the onscreen text is


octave:1> w = weboptions 
output =   weboptions with properties:

      CharacterEncoding: 'auto'
              UserAgent: 'Octave/11.1.1'
                Timeout: 5
               Username: ''
               Password: ''
                KeyName: ''
               KeyValue: ''
            ContentType: 'auto'
          ContentReader: []
              MediaType: 'auto'
          RequestMethod: 'auto'
            ArrayFormat: 'csv'
           HeaderFields: {}
    CertificateFilename: ''


With use of *disp* the text is 


octave:1> w = weboptions 
w =

  weboptions with properties:

      CharacterEncoding: 'auto'
              UserAgent: 'Octave/11.1.1'
                Timeout: 5
               Username: ''
               Password: ''
                KeyName: ''
               KeyValue: ''
            ContentType: 'auto'
          ContentReader: []
              MediaType: 'auto'
          RequestMethod: 'auto'
            ArrayFormat: 'csv'
           HeaderFields: {}
    CertificateFilename: ''


I'll have to look more into the C++ code about the wrong type argument.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68079>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaaRoEgAKCRCqLAuaBUf3
TrN2AP4238GTipIznxQ52zeklqzS1t2ZbA13/11kr5McX4s84QD9H3IwBWggRUo6
+vVNqe7/ji7ykMMpWYbRvTlEKS05LQY=
=g4qT
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.