Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 833
    • Issues 833
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 237
    • Merge requests 237
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #17951
Closed
Open
Issue created Jun 25, 2020 by Andras Lasso@lassoanDeveloper

vtkSTLWriter and vtkSTLReader fails on ASCII files depending on locale

vtkSTLWriter uses fprintf to write out floating-point numbers. This is wrong for many reasons, the most serious is that it is locale-specific and so on a computer with European locale will create numbers with decimal comma instead of decimal point. All floating-point number writing in VTK should use doubleconversion library (see vtkXMLWriter.cxx).

Similarly, vtkSTLReader fails to read ASCII STL files on certain computers. See for example this error report: https://discourse.vtk.org/t/reading-ascii-stl-files-with-qvtk/3622/3?u=lassoan

Edited Jun 25, 2020 by Andras Lasso
Assignee
Assign to
Time tracking