Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any
New issue 230 by ea7...@gmail.com: 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 ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user