[GRASS-dev] g.mlist as C implementation?

Maris Nartiss maris.gis at gmail.com
Thu Sep 13 02:09:18 EDT 2007


Hi,
back to old discussions?
http://grass.itc.it/pipermail/grass-dev/2007-January/028510.html

Just a idea - would it be possible to #IFDEF OS specific illegal chars
for this function? Only problem for such approach could be tar'ing
location/gisdbase and moving to other system (move *nix files with ":"
to windows).
Or - for GRASS 7 - get rid of map_name==file_name at all. Assign some
random file name (gr_0982193) and store map name in it's header
(my!@*&^*!#(*^!*@&raster). Such approach could eliminate illegal map
name problem at all. Drawback - no easy way how to tell which map is
stored in which file w/o GRASS (it can be solved by providing some
"table of contents" file).

Just trying to confuse everyone,
Maris.

2007/9/13, Glynn Clements <glynn at gclements.plus.com>:
>
> According to G_legal_filename(), ":" is legal in map names (that won't
> work on Windows):
>
> 	if (*s == '/' || *s == '"' || *s == '\'' || *s <= ' ' ||
>             *s == '@' || *s == ',' || *s == '=' || *s == '*' || *s > 0176) {
> 		fprintf(stderr, _("Illegal filename. Character <%c> not allowed.\n"), *s);
>
> I'd suggest using a comma for the field separator.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
>




More information about the grass-dev mailing list