Closed Bug 136917 Opened 23 years ago Closed 3 years ago

FilePicker convert path incorrectly

Categories

(Core :: XUL, defect, P4)

x86
Windows 2000
defect

Tracking

()

RESOLVED INCOMPLETE
Future

People

(Reporter: rods, Unassigned)

Details

Attachments

(1 file)

If you call SetDefaultString with "p:\p.ps" it gets converted to "p-\p.ps"
Blocks: 99619
Status: NEW → ASSIGNED
Keywords: nsbeta1
Severity: normal → major
Target Milestone: --- → mozilla1.0
Attached patch patchSplinter Review
This patch cuts off the the disk part and calls ReplaceChar(FILE_ILLEGAL_CHARACTERS, '-') on just the name instead of the entire string.
No longer blocks: 99619
Priority: -- → P4
Target Milestone: mozilla1.0 → Future
Keywords: nsbeta1
Comment on attachment 78738 [details] [diff] [review] patch that looks wrong to me. why don't you simply start replacing at the third character, because you can't specify a driver after that anyway. furthermore, you might want to make that #ifdef XP_WIN32 or what that's called
I'm seeing this in Thunderbird 1.0 when I Save All attachments and one (or more) of the files already exists. I choose not to overwrite it and the path that shows up in the resultant filepicker generates f-\path\to\the\saveall\directory\existing.filename instead of f:\path\to\the\saveall\directory\existing.filename Actually, I've seen it in recent older Thunderbird versions, too (0.8, 0.9).
Assignee: rods → nobody
Status: ASSIGNED → NEW
QA Contact: jrgmorrison → xptoolkit.widgets

Marking this as Resolved > Incomplete since the last real activity on this issue was 17 years ago (reported for Windows 2000) and it might not be relevant anymore.
Feel free to re-open it if it's not the case and the issue is still relevant.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: