[Gambas-user] Issue 230 in gambas: Dialog.Savefile replaces spaces in gb.GTK

gambas at ...2524... gambas at ...2524...
Wed Apr 4 20:32:21 CEST 2012


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 230 by ea7... at ...626...: Dialog.Savefile replaces spaces in gb.GTK
http://code.google.com/p/gambas/issues/detail?id=230

1) Describe the problem.

Saving a file via Dialog.SaveFile using gb.gtk produces a malformed file  
name when there are spaces in the file name. It seems it's encoding the  
spaces as if it was an url '%20'. When using gb.qt4 all goes well.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK 3,1
Revision: r4594
Operating system: Linux
Distribution:
Debian Squeeze
Architecture: Linux debian 2.6.32-5-686 #1 SMP Mon Mar 26 05:20:33 UTC 2012  
i686 GNU/Linux
GUI component:  GTK+
Desktop used: Gnome

3) Provide a little project that reproduces the bug or the crash.

Run this simple code switching between components qt4 / gtk. :

Public Sub Form_Open()

   Dim pPrinter As New Printer
   'test vars
   Dim var1 As String = "name with"
   Dim var2 As String = "spaces"

   Dialog.Title = "File target"
   Dialog.Path = "/tmp/" & "A file " & var1 & " " & var2
   ' Dialog.Path = Subst$("/tmp/A file &1  &2", var1, var2) 'using subst  
doesn't help either
   Dialog.Filter = ["*.pdf", "Portable Document Format"]
   If Dialog.SaveFile() Then Return
   pPrinter.OutputFile = Dialog.Path
   Print Dialog.Path 'test console output
   pPrinter.Print

End

4) If your project needs a database, try to provide it, or part of it.
n/a
5) Explain clearly how to reproduce the bug or the crash.

Run previous code






More information about the User mailing list