git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71423 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -99,7 +99,7 @@ def main():
if name.find("@") >= 0:
id_ = name
else:
- id_ = name + "@" + grass.gisenv()["MAPSET"]
+ id_ = name + "@" + grass.encode(grass.gisenv()["MAPSET"])
dataset = tgis.dataset_factory(type_, id_)
@@ -52,7 +52,7 @@ def main():
tgis.init()
#Get the current mapset to create the id of the space time dataset
- mapset = grass.gisenv()["MAPSET"]
+ mapset = grass.encode(grass.gisenv()["MAPSET"])
inputs_split = inputs.split(",")
input_ids = []
@@ -82,7 +82,7 @@ def main():
nprocs = options["nprocs"]
tsuffix = options["suffix"]
# Make sure the temporal database exists
@@ -120,7 +120,7 @@ def main():
if output.find("@") >= 0:
id = output
id = output + "@" + mapset
map = sp.get_new_map_instance(id)
@@ -50,7 +50,7 @@ def main():
sp = tgis.open_old_stds(input, "strds")
@@ -51,7 +51,7 @@ def main():
if input.find("@") >= 0:
old_id = input
@@ -67,7 +67,7 @@ def main():
if not maps and not file:
grass.fatal(_("%s= or %s= must be specified") % ("input", "file"))
dbif = tgis.SQLDatabaseInterfaceConnection()
dbif.connect()
@@ -98,7 +98,7 @@ def main():
out_sp = tgis.check_new_stds(output, "stvds", dbif, overwrite)