Re: Portability issues with filenames provided by tkdnd
- From: Francois Vogel <fsvogelnew5NOSPAM@xxxxxxx>
- Date: Fri, 23 Jan 2009 00:02:31 +0100
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
.
- Follow-Ups:
- Re: Portability issues with filenames provided by tkdnd
- From: Francois Vogel
- Re: Portability issues with filenames provided by tkdnd
- References:
- Portability issues with filenames provided by tkdnd
- From: Francois Vogel
- Re: Portability issues with filenames provided by tkdnd
- From: George Petasis
- Re: Portability issues with filenames provided by tkdnd
- From: Francois Vogel
- Re: Portability issues with filenames provided by tkdnd
- From: Georgios Petasis
- Re: Portability issues with filenames provided by tkdnd
- From: Francois Vogel
- Re: Portability issues with filenames provided by tkdnd
- From: George Petasis
- Portability issues with filenames provided by tkdnd
- Prev by Date: Re: Activestate Windows "package require uuid" doesn't work (Newbie)
- Next by Date: Re: eTcl - standalone binary
- Previous by thread: Re: Portability issues with filenames provided by tkdnd
- Next by thread: Re: Portability issues with filenames provided by tkdnd
- Index(es):
Relevant Pages
|