Trying to fix unicode filename handling on Windows. Patch ported from 2.2.

svn: r9354
This commit is contained in:
Martin Hawlisch
2007-11-16 16:45:45 +00:00
parent 5cf5857bed
commit 802f0eb33f
6 changed files with 35 additions and 18 deletions

View File

@ -770,8 +770,7 @@ class NewNativeDbPrompter:
while (True):
response = choose.run()
if response == gtk.RESPONSE_OK:
filename = unicode(choose.get_filename(),
sys.getfilesystemencoding())
filename = Utils.get_unicode_path(choose.get_filename())
if filename == None:
continue
if os.path.splitext(filename)[1] != ".grdb":