-
- Downloads
[!353] open gmsh file in binary mode
Merge branch 'gmsh_reader_fix' into 'master' ref:core/dune-grid - otherwise on windows it is opened in text mode - ftell/fseek on windows only work correctly on binary files - see e.g. [https://stackoverflow.com/questions/47256223/why-does-fseek-0-seek-cur-fail-on-windows] - this makes no difference on posix systems also: use ftello/fseeko with type off_t instead of ftell/fseek with type long - [https://www.gnu.org/software/libc/manual/html_node/File-Positioning.html] - "using ftello is preferable whenever it is available" See merge request [!353] [https://stackoverflow.com/questions/47256223/why-does-fseek-0-seek-cur-fail-on-windows]: https://stackoverflow.com/questions/47256223/why-does-fseek-0-seek-cur-fail-on-windows [https://www.gnu.org/software/libc/manual/html_node/File-Positioning.html]: https://www.gnu.org/software/libc/manual/html_node/File-Positioning.html [!353]: gitlab.dune-project.org/core/dune-grid/merge_requests/353
Please register or sign in to comment