[GRASS-dev] Re: testing native winGRASS

Paul Kelly paul-grass at stjohnspoint.co.uk
Tue Mar 13 18:34:24 EDT 2007


Hello Moritz

On Tue, 13 Mar 2007, Moritz Lennert wrote:

> 1) Create location with projection values: location created but mapset 
> (other than PERMANENT) invalid

Could you try the patch below for lib/gis/getl.c and see if GRASS can 
then handle the newly created location? I think the problem is the created 
location contains Windows line endings in some of the files and other 
GRASS functions can't handle them. G_getl2() handles Windows line endings 
whereas G_getl() does not. I have a hunch this may apply in many places.

Index: getl.c
===================================================================
RCS file: /home/grass/grassrepository/grass6/lib/gis/getl.c,v
retrieving revision 2.6
diff -u -r2.6 getl.c
--- getl.c      12 Nov 2006 04:05:02 -0000      2.6
+++ getl.c      13 Mar 2007 22:31:02 -0000
@@ -16,6 +16,8 @@

  int G_getl ( char *buf, int n, FILE *fd)
  {
+    return G_getl2 ( buf, n, fd );
+   /*
      if (!fgets (buf, n, fd))
         return 0;

@@ -24,6 +26,7 @@
      *buf = 0;

      return 1;
+    */
  }




More information about the grass-dev mailing list