From bug-octave-request at bevo dot che dot wisc dot edu Wed Jan 29 21:44:49 2003 Subject: Unidentified subject! From: "John W. Eaton" To: Volker Gloeckel Cc: bug-octave at bevo dot che dot wisc dot edu, vog@regent.e-technik.tu-muenchen.de Date: Wed, 29 Jan 2003 21:44:15 -0600 On 29-Jan-2003, Volker Gloeckel wrote: | To: bug-octave at bevo dot che dot wisc dot edu | Cc: vog | Subject: sprintf: output string is to short | | Bug report for Octave 2.1.36 configured for i686-pc-linux-gnu | | Description: | ----------- | | given: | | cmd = "\"aaaaaaaaaaaaaaa\", \"bbbbbbbbbbbbbbbb\", \"ccccccccccccccccc\", \"dddddddddddddddd\", \"eeeeeeeeeeeee\", \"fffffffff\"" | | the command sprintf (taken from split.m line 82 ) results in: | octave:76> sprintf ("str2mat (%s);", cmd) | ans = str2mat ("aaaaaaaaaaaaaaa", "bbbbbbbbbbbbbbbb", "ccccccccccccccccc", "dddddddddddddddd", "eeeeeeeeeee); | | bug: the rest of the 'e' string and the 'f' string is missing. I can't reproduce this rpoblem with either 2.1.43 or the current CVS sources. Both produce the following result: noctave:1> cmd = "\"aaaaaaaaaaaaaaa\", \"bbbbbbbbbbbbbbbb\", \"ccccccccccccccccc\", \"dddddddddddddddd\", \"eeeeeeeeeeeee\", \"fffffffff\"" cmd = "aaaaaaaaaaaaaaa", "bbbbbbbbbbbbbbbb", "ccccccccccccccccc", "dddddddddddddddd", "eeeeeeeeeeeee", "fffffffff" octave:2> sprintf ("str2mat (%s);", cmd) ans = str2mat ("aaaaaaaaaaaaaaa", "bbbbbbbbbbbbbbbb", "ccccccccccccccccc", "dddddddddddddddd", "eeeeeeeeeeeee", "fffffffff"); jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------