« Return to Thread: Bug and bugfix: Local feeds in UNIX environments

Bug and bugfix: Local feeds in UNIX environments

by Steve Wolter :: Rate this Message:

Reply to Author | View in Thread

Dear NewsFox developers,

first of all, sorry for not filing this bug in BugZilla.

When adding a local feed to your fine program, I've run into problems.
After grepping the source code, I've discovered several instances of
code like

"file:///" + file.path

in your code. You might be aware that such code is highly unportable;
it might work on forest file systems like Windows' one, but evryone
else today uses tree file systems, which already start filenames with
a '/'. Thus, the above expression evaluates to "file:////vol/foo", for
example, which is one slash too much.

A bugfix might include simply checking for a leading / in the file
and adding it only if necessary.

If you have further questions about the difference between the first
two // in the file:/// and the third, feel free to contact me.

Faithfully yours, Steve Wolter

--
Your mode of life will be changed for the better because of new developments.


_______________________________________________
Newsfox mailing list
Newsfox@...
http://mozdev.org/mailman/listinfo/newsfox

signature.asc (196 bytes) Download Attachment

 « Return to Thread: Bug and bugfix: Local feeds in UNIX environments