cell->char loses blank entries

Walt Ogburn ogburn at stanford.edu
Mon Dec 10 20:12:23 CST 2007


On Monday 10 December 2007 5:54:10 pm John W. Eaton wrote:
> On 10-Dec-2007, Walt Ogburn wrote:
> | Bug report for Octave 2.9.12 configured for i486-pc-linux-gnu
> |
> | Description:
> | -----------
> |
> | When a cell array of strings is converted to a character array,
> | any blank entries are lost.
> |
> | Repeat-By:
> | ---------
> |
> | debug> char ({'k', '', '', 'f', 'g'})
> | ans =
> |
> | k
> | f
> | g
> |
> | debug> size (char ({'k', '', '', 'f', 'g'}))
> | ans =
> |
> |    3   1
>
> Please try the following patch.
>
> Thanks,
>
> jwe

Thanks, that fixes it.



More information about the Bug-octave mailing list