MantisBT - VTK
View Issue Details
0013744VTK(No Category)public2012-12-19 06:402015-01-09 13:40
Gert Wollny 
Dave DeMarle 
normalminorhave not tried
closedfixed 
5.10.1 
6.1.0 
Kitware
incorrect functionality
0013744: vtkDataReader and vtkDataWriter don't agree on signed char
vtkDataWriter indicates in the data file that an array is of type "signed char" by writing out the string "signed_char":

vtkDataWriter.cxx:1074
    case VTK_SIGNED_CHAR:
      {
      sprintf (str, format, "signed_char"); *fp << str;
      signed char *s=
        static_cast<vtkSignedCharArray *>(data)->GetPointer(0);
      vtkWriteDataArray(fp, s, this->FileType, "%hhd ", num, numComp);
      }
    break;

however, vtkDataReader checks for the string "char":
vtkDataReader.cxx:1446

  else if ( ! strncmp(type, "char", 4) )
    {
    array = vtkCharArray::New();
    array->SetNumberOfComponents(numComp);
  

As a result, a "signed char" data array stored by using vtkDataWriter can not be read back.
No tags attached.
Issue History
2012-12-19 06:40Gert WollnyNew Issue
2013-01-04 10:17Kyle LutzAssigned To => Kyle Lutz
2013-01-04 10:17Kyle LutzStatusbacklog => todo
2013-01-04 10:17Kyle LutzResolutionopen => fixed
2013-01-04 10:18Kyle LutzStatustodo => active development
2013-01-04 10:18Kyle LutzNote Added: 0029976
2013-01-04 10:18Kyle LutzStatusactive development => gatekeeper review
2013-07-22 20:10Dave DeMarleNote Added: 0031272
2013-07-22 20:10Dave DeMarleStatusgatekeeper review => backlog
2013-07-22 20:11Dave DeMarleStatusbacklog => todo
2013-08-12 17:44Dave DeMarleStatustodo => backlog
2013-12-16 13:59Dave DeMarleAssigned ToKyle Lutz => Dave DeMarle
2013-12-16 13:59Dave DeMarleStatusbacklog => gerrit review
2013-12-17 15:48Dave DeMarleNote Added: 0031988
2013-12-17 15:48Dave DeMarleStatusgerrit review => closed
2013-12-17 15:48Dave DeMarleFixed in Version => 6.1.0
2015-01-09 13:40Dave DeMarleSource_changeset_attached => VTK master d92bf40e

Notes
(0029976)
Kyle Lutz   
2013-01-04 10:18   
Fix pushed to gerrit: http://review.source.kitware.com/#/t/1904/ [^]
(0031272)
Dave DeMarle   
2013-07-22 20:10   
moving back to active development since gatekeeper review state is gone and issue not fixed
(0031988)
Dave DeMarle   
2013-12-17 15:48   
merged into repository, thanks for the Patch