#469: raster data needs binary mode on windows ---------------------------+------------------------------------------------ Reporter: jef | Owner: [email protected] Type: defect | Status: new Priority: major | Milestone: 6.4.0 Component: default | Version: 6.4.0 RCs Resolution: | Keywords: Platform: MSWindows XP | Cpu: Unspecified ---------------------------+------------------------------------------------ Comment (by jef):
Replying to [comment:5 glynn]: > Note: setting _fmode is the only way to get stdin/stdout into binary mode (we don't care about stderr). At least, this used to be the case. It appears that later versions of MSVCRT require that you explicitly change the mode of these descriptors. However, MinGW always links against msvcrt.dll, not a later version. Ok, I adapted fmode.c to dllmain.c and include it in every dll. _fmode is set when the DLL is loaded. That also helps - and might fix more than the raster problem addressed by the original patch - which I replaced. -- Ticket URL: <https://trac.osgeo.org/grass/ticket/469#comment:6> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
