[GRASS-dev] [GRASS GIS] #508: hardcoded /dev/null

GRASS GIS trac at osgeo.org
Thu Feb 26 01:00:55 EST 2009


#508: hardcoded /dev/null
--------------------------------+-------------------------------------------
 Reporter:  hamish              |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect              |      Status:  new                      
 Priority:  major               |   Milestone:  6.4.0                    
Component:  default             |     Version:  6.4.0 RCs                
 Keywords:  wingrass /dev/null  |    Platform:  MSWindows XP             
      Cpu:  x86-32              |  
--------------------------------+-------------------------------------------
 Hi,

 {{{
 imagery/i.cluster/main.c
 raster/r.out.mpeg/main.c
 raster/r.topmodel/misc.c
 lib/gis/opencell.c  G__open_cell_old()
 }}}
 all hardcode to /dev/null which doesn't exist on Windows.

 perhaps
 {{{
 #ifdef __MINGW32__
 #define NULLDEV "NUL:"
 #else
 #define NULLDEV "/dev/null"
 #endif
 }}}
 or somesuch? (no idea)


 d.ask and XDRIVER do too, but they don't work on MS Windows.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/508>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list