Re: Portability issues with filenames provided by tkdnd



George Petasis said on 22/01/2009 20:47:
But before diving deep into Tcl, don't you rather think this could be
a kubuntu bug since the output from ls also doubles the percent signs
while Konqueror shows a single percent in its graphical window?

You are correct, I haven't noticed that ls also outputs double percent signs.

Some more findings:

On Ubuntu 7.10 with gnome:
ls outputs a single percent sign in the filename

On Kubuntu 8.10:
Ditto. ls outputs a single percent sign in the filename

I therefore suspect a bug in Kubuntu 8.04.

To check this assumption I've made a fresh install of Kubuntu 8.04.1 and I could reproduce the problem:
From the file manager (Dolphin), right click to create a file having name "my%47fun.txt" creates a file named "my%Gfun.txt". Bingo, there must be something wrong here! At this point, ls outputs "my%Gfun.txt".
Then, opening the properties box for this file and renaming it to "my%47fun.txt" now shows it as "my%47fun.txt" in Dolphin. Fine.
But then ls outputs a *double* percent in the filename and tells me there is a file named "my%%47fun.txt" on my disk!

My conclusion is therefore that this double percent problem is a bug that sticks with (k)Ubuntu 8.04 and has been fixed since then in the latest Kubuntu distro (8.10).

In summary: so far I could find only one platform that doubles the percent sign in the filename, and this looks pretty much like a bug of this platform. Linux flavors are consistent to each other.
I will then most probably just ignore this bug in my Tcl application using tkdnd, and limit myself to strip the leading "file:".

I have however found no bug report related to percent signs in filenames in Ubuntu so far, despite quite obstinate browsing, but I may have looked at wrong places.

Francois
.



Relevant Pages

  • Re: linux 2007b uicontrol popup freezes
    ... I'm currently running kubuntu gutsy. ... java 6, I think. ... and it appears to be a bug common to several ... "I am writing about the bug in MATLAB with regards to ...
    (comp.soft-sys.matlab)
  • Re: linux 2007b uicontrol popup freezes
    ... I'm currently running kubuntu gutsy. ... java 6, I think. ... and it appears to be a bug common to several ... I'm having some trouble with popup menus in 2007b running ...
    (comp.soft-sys.matlab)
  • Re: [SLE] Install of 10.1 - Not Happy!
    ... Andy Goss wrote: ... Kubuntu and FC4. ... I use dual screen and second screen showed up after bug $171453 was resolved and patch applied. ...
    (SuSE)
  • Re: code within libraries vs code within same project
    ... Is this a bug in System.Diagnostics.StackTrace? ... //the .dll do not appear to have all the info, particularly filename. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Common dialog control returns wrong filename
    ... It is caused by the listview generating a CDN_SELCHANGE: message when the listview area is clicked. ... This is not a bug per: se, but rather the way a listview works. ... : Remember too that Word and Excel do not use the Windows common dialogs, so: their custom implementation to duplicate the functionality of the real: common dialogs may circumvent the problem. ... sometimes:: returns a different filename from the name that is displayed on the ...
    (microsoft.public.vb.bugs)