Closed
Bug 23705
Opened 26 years ago
Closed 26 years ago
choose file dialog fails to paste japanese text
Categories
(SeaMonkey :: Preferences, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M16
People
(Reporter: amasri, Assigned: ftang)
References
Details
(Whiteboard: blocked by assertion in nsFilePicker.cpp)
with Win98ja, macOS 8.5ja, with Mozilla 2000011108:
1. open preferences panel
2. select Advanced | Cache
3. select "Choose Folder" button
4. in choose folder dialog, select a folder with a Japanese name and click OK.
RESULT: Name of the selected folder is displayed incorrectly in field. This also
applies to all similar fields in preferences.
Updated•26 years ago
|
QA Contact: sairuh → teruko
Comment 1•26 years ago
|
||
methinks teruko is the appropriate QA contact for this... do let me know if
otherwise!
| Reporter | ||
Updated•26 years ago
|
QA Contact: teruko → amasri
| Reporter | ||
Comment 2•26 years ago
|
||
Well, no, I guess it should be me.
Bulk move of all Pref UI component bugs to new Preferences component. Pref UI
component will be deleted.
Component: Pref UI → Preferences
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 6•26 years ago
|
||
ftang,
I looked into this last Friday and there is even an easier way to reproduce it.
Also this will demonstrate that the problem described in 33862 and 33864 is even
worse, we are not even able to properly display any non-ASCII file descriptor.
Adding a Unicode file string is good, we also need to make sure it doesn't get
affected by the internal "escaped" and "unescaped" conversion - see below.
1) create a folder and/or file containing non-ASCII characters (some Latin1
chars thrown in for the good measure is all that's needed)
2) go to the Mozilla menu and say "Open new Web location", the hit "Choose File"
in the dialog box.
3) the file path containing non-ASCII chars displays correctly, once you hit
enter and Mozilla renders the page, the file path appears in
the URL window in escaped form, meaning it no longer displays the non-ASCII
characters. The funny part is that one can copy and paste the file
resource descriptor in its escaped or unescaped form between the Navigator
and Mozilla and it works perfectly. Only Navigator keeps displaying the
unescaped string in the URL window.
When debugging I saw some 7 - 10 layers of calls, but the basic problem for
Latin1 strings happens in
nsStdURL::AppendFileName
...
rv = AppendString(buffer,i_FileBaseName,ESCAPED,
nsIIOService::url_FileBaseName);
if (NS_FAILED(rv))
return rv;
}
...
where we convert the string to an escaped one. We never save the unescaped
version of the file path and also don't bother to convert it
back before displaying it again.
One I could think of is to make sure that we keep a copy of the original string
and return it back to the JavaScript caller. Another one
would be unescaping the string in JavaScript before setting the value attribute
in the UI XUL file...
| Assignee | ||
Comment 8•26 years ago
|
||
all the nsIFile and nsIFileSpec related issue should be look together.
| Assignee | ||
Comment 9•26 years ago
|
||
This bug is currently blocked by an assertion inside nsFilePicker.cpp
NS_ASSERTION(0, "Only load and save are supported modes");
| Assignee | ||
Updated•26 years ago
|
Whiteboard: blocked by assertion in nsFilePicker.cpp
Comment 11•26 years ago
|
||
*** Bug 24809 has been marked as a duplicate of this bug. ***
Comment 12•26 years ago
|
||
*** Bug 24809 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 13•26 years ago
|
||
fixed and check in
Comment 15•26 years ago
|
||
I verified this in 2000042709 Win32 and 2000042710 Linux build.
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•