[GRASS-dev] Non ASCII in GISBASE, LOCATION, MAPSET, MAP

Radim Blazek radim.blazek at gmail.com
Tue Apr 20 02:55:34 EDT 2010


On Thu, Mar 25, 2010 at 5:57 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> The main restriction is G_legal_filename(), in lib/gis/legal_name.c.
> This prohibits all characters >=127 and <=32 as well as the specific
> characters:

G_legal_filename is used in lib/init/set_data.c to check MAPSET and
LOCATION_NAME. Does it mean that there are no restrictions for
GISBASE?

> As you know, vector map names are further restricted to valid SQL
> identifiers. Personally, I'd like to see that restriction removed.
> There's no fundamental reason why a map's attribute table must have
> *exactly* the same name as the map; an approximation (e.g. with
> invalid characters replaced by underscores) would suffice, IMHO.

Just simple replacement results in duplicate names, does not?

Radim


More information about the grass-dev mailing list