Closed faxm0dem closed 2 years ago
Haven't had a chance to try replicating this issue yet, but just as a workaround for now, will it work if you surround the long filename with double quotes?
I'll try that ASAP
That worked
MEGA65 SD-Card:/> dput "INT KARATE +_VGG.PRG"
Wrapping "INT KARATE +_VGG.PRG" into "INT KARATE +_VGG.D81"...
INT KARATE +_VGG.D81 does not yet exist on the file system -- searching for empty directory slot to create it in.
- Using DOS8.3 name of 'INTKAR~1.D81'
Uploaded 819200 bytes in 1 seconds (800.0KB/sec)
MEGA65 SD-Card:/>
well, it's still a bug, maybe not close it so fast ?
Well... LFN support is not really given in all the places, and using special chars is poking the bear. So this is no bug, but a feature request in my eyes.
We can keep it that way.
TODO:
Hmm, I feel like the usage of quotes to surround filenames containing spaces is standard practice in a lot of OS. Not doing so usually leads to "un-expected" behaviour.
Ok, in this case though, getting a segfault is a surprise and worth sorting out, so that it handles the situation a bit more gracefully :-) I'll try look into when I get a chance.
segfault averted!
Test env
Bug description
When using
mega65_ftp
on asdcard
anddput
using a file with special chars yields a segmentation fault.Reproduction
Stack Trace