You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed "%" is allowed on Windows. If that's possible on other platforms as well, maybe we could encode special characters like done with the URLs? Like %3F for "?"?
Though it’s not great, I’d say it’s acceptable to remove ? and name the file hello_a#foo.html or something, as long as it includes #. Both ? and # are special in URLs, and this tests is about testing that a command line argument is not treated as an URL if it looks relative. So it’s unlikely we’d have this bug for one of the two characters but not both.
Sorry, didn't explore thoroughly and don't know the test harness, but @Manishearth do you mean it would be hard to generate the file for a test only on nowindows OS? Could you possibly give some hints for a noob what work it could require and how to try starting to do it?
Activity
jdm commentedon Jan 14, 2015
Hmm. The question mark is useful because it allows for an automated test using a query string. Maybe we just need a test harness annotation instead.
Dexterp37 commentedon Feb 7, 2015
This makes git clone on Windows report the following error when checking out:
error: Invalid path 'tests/ref/hello_a?foo#bar.html'
The following article talks about allowed characters in Windows paths: link.
To recap:
Fixing this will also fix issue #3911.
jdm commentedon Feb 8, 2015
I guess we should just take the "#bar" out of the filename and update the entry in basic.lit to match.
Dexterp37 commentedon Feb 8, 2015
Well, the whole "?foo#bar.html" needs to be taken out because of the question mark.
jdm commentedon Feb 8, 2015
Ah right. I guess we don't get to have an automated test for #3340 :(
Manishearth commentedon Feb 8, 2015
We can have mach create the file based on your OS :)
Manishearth commentedon Feb 8, 2015
Wait, we'd still need special harness code to make that work. Hmm.
Dexterp37 commentedon Feb 8, 2015
I just noticed "%" is allowed on Windows. If that's possible on other platforms as well, maybe we could encode special characters like done with the URLs? Like %3F for "?"?
Manishearth commentedon Feb 8, 2015
But the test is explicitly for testing the opening of a file with a ? in its name :)
Dexterp37 commentedon Feb 9, 2015
Ouch! Then I guess conditionally creating it depending on the OS is the best bet :)
SimonSapin commentedon Feb 9, 2015
Though it’s not great, I’d say it’s acceptable to remove
?and name the filehello_a#foo.htmlor something, as long as it includes#. Both?and#are special in URLs, and this tests is about testing that a command line argument is not treated as an URL if it looks relative. So it’s unlikely we’d have this bug for one of the two characters but not both.frewsxcv commentedon Mar 22, 2015
I don't know how the
basic.listparsing works, but what about creating a way to have only certain tests run on unix or windows?Manishearth commentedon Mar 22, 2015
You could perhaps filter filenames for
nowindows, but it still makes the repo uncloneable (? not sure)akavel commentedon Apr 3, 2015
Sorry, didn't explore thoroughly and don't know the test harness, but @Manishearth do you mean it would be hard to generate the file for a test only on
nowindowsOS? Could you possibly give some hints for a noob what work it could require and how to try starting to do it?jdm commentedon Sep 12, 2015
Fixed by #7610.