[GRASS-SVN] r40339 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 9 00:00:17 EST 2010


Author: hamish
Date: 2010-01-09 00:00:16 -0500 (Sat, 09 Jan 2010)
New Revision: 40339

Modified:
   grass/trunk/lib/vector/Vlib/field.c
Log:
change default dbln format to use | as the field sep not a space (bug #809)

Modified: grass/trunk/lib/vector/Vlib/field.c
===================================================================
--- grass/trunk/lib/vector/Vlib/field.c	2010-01-09 04:51:22 UTC (rev 40338)
+++ grass/trunk/lib/vector/Vlib/field.c	2010-01-09 05:00:16 UTC (rev 40339)
@@ -722,7 +722,7 @@
 	if (strlen(buf) == 0)
 	    continue;
  
-	tokens = G_tokenize(buf, " ");
+	tokens = G_tokenize(buf, " |");
 	ntok = G_number_of_tokens(tokens);
 
 	if (ntok < 2 || (ntok < 5 && rule < 1)) {
@@ -807,10 +807,10 @@
 	else
 	    sprintf(buf, "%d", dbl->field[i].number);
 
-	fprintf(fd, "%s %s %s %s %s\n", buf, dbl->field[i].table,
+	fprintf(fd, "%s|%s|%s|%s|%s\n", buf, dbl->field[i].table,
 		dbl->field[i].key, dbl->field[i].database,
 		dbl->field[i].driver);
-	G_debug(1, "%s %s %s %s %s", buf, dbl->field[i].table,
+	G_debug(1, "%s|%s|%s|%s|%s", buf, dbl->field[i].table,
 		dbl->field[i].key, dbl->field[i].database,
 		dbl->field[i].driver);
     }



More information about the grass-commit mailing list