Currently, change_sug_filename in LYUtils.c contains the following
snippet:

    /*
     * Trim off VMS device and/or directory specs, if present.
     */
    if ((cp = strchr(fname, '[')) != NULL &&
        (cp1 = strrchr(cp, ']')) != NULL && strlen(cp1) > 1) {
        cp1++;
        for (cp = fname; *cp1 != '\0'; cp1++) {
            *(cp++) = *cp1;
        }
        *cp = '\0';
    }

Note that in spite of the reference to VMS, this is protected by #ifdef
VMS or anything similar.  The effect is that if you download a file that
contains the characters [ and ] (in that order), everything from the
beginning up to and including the last ] is deleted from the filename
that Lynx suggests when you use "d" to download it.  (Well, as long as
there's a least one character after the ].)

This is unfortunate, as in certain contexts it's common practise to
include CRC32 checksums in filenames, usually in this style:
"Filename_[DEADBEEF].avi".

I'm unsure what problem the original code is intended to solve, and
whether it's relevant on non-VMS platforms.  For me, simply commenting
out the block solves the entire problem.

-- 
Gaute Strokkenes


_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to