[GRASS-dev] Re: [GRASS GIS] #469: raster data needs binary mode on windows

GRASS GIS trac at osgeo.org
Thu Jan 29 12:35:04 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 warmerdam):

 Dear grass team.  I would humbly submit that making anyone who wants to
 use the grass libraries also link with fmode.o is risky and that it would
 be safer to actually enforce binary behavior at the open() call(s).  In
 other packages my practice has been to always pass O_BINARY to open(), and
 to predefine it to zero if it isn't already defined.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/469#comment:3>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list