diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 4c7458604..3ff2e46e6 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-05-30 Matt Brubeck + * src/DbPrompter.py: fix handling of spaces when creating a new + file - use open instead of "touch" + 2005-05-30 Alex Roitman * src/po/sv.po: Typo (closes 1211150). diff --git a/gramps2/src/DbPrompter.py b/gramps2/src/DbPrompter.py index c2e9c3613..193bb9f74 100644 --- a/gramps2/src/DbPrompter.py +++ b/gramps2/src/DbPrompter.py @@ -472,7 +472,8 @@ class NewSaveasDbPrompter: continue filetype = type_selector.get_value() if filetype == 'auto': - os.system('touch %s' % filename) + new_file = open(filename, "w") + new_file.close() filetype = get_mime_type(filename) (the_path,the_file) = os.path.split(filename) choose.destroy()