[GRASS-dev] Re: [GRASS GIS] #469: raster data needs binary mode on
windows
GRASS GIS
trac at osgeo.org
Thu Jan 29 18:00:31 EST 2009
#469: raster data needs binary mode on windows
---------------------------+------------------------------------------------
Reporter: jef | Owner: grass-dev at lists.osgeo.org
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>
More information about the grass-dev
mailing list