[WX] File links stop at first space or international letter
Brought to you by:
ryannpcs
From the wxProjects project: Christian Furst - chris14
"Using local file links (local:// or ilocal://) with a space or
some national character in the filename generates a link
only up to this space or the first specific char.
local://MyFile nr 1.jpg (creates a link to file"MyFile")
local://J�ttestorFil.xls (creates a link to file"J")
Sometimes it is not appropriate to rename the file. There
ought to be a way to "bundle" the words in a filename
with space(s)."
Also discussion:
Ryan:
"The difficult thing here, especially with spaces, is how to tell
we've
"found" a filename. One thing that might work is using
the url syntax, i.e.
%20 instead of a space..."
Seems like once we detect a [ we should assume anything up to a space. Test cases:
[file:////server//FileWithTwoSpaces%20%20Here.doc File with Two Spaces]
[file:////server//FileWithTwoSpaces%20%20HereAndDosOKCharacters().doc File with Two Spaces and Funny Characters]