#2278: G__tempfile() lacks perror support
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: LibGIS | Version: svn-releasebranch70
Keywords: r.hants | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by glynn):
Replying to [ticket:2278 neteler]:
> For a better error message, perror() should be used:
Ideally, strerror() (or similar) should be used, and the string included
in the error message. Otherwise, the additional details will be omitted
from any logfile ($GIS_ERROR_LOG) or email message ($GRASS_ERROR_MAIL).
Except, strerror() isn't thread-safe (it returns a pointer to a static
buffer). POSIX.1-2001 specifies strerror_r(), which requires the caller to
supply a buffer. Windows doesn't have that, but it has strerror_s (same
functionality, different argument order). So we'd need configure checks.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2278#comment:1>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev