Closed
Bug 102976
Opened 25 years ago
Closed 25 years ago
Display garbled of Quicktime part in Plugins page
Categories
(Core :: Internationalization, defect, P2)
Tracking
()
VERIFIED
FIXED
mozilla0.9.6
People
(Reporter: amyy, Assigned: nhottanscp)
References
Details
(Keywords: intl)
Attachments
(2 files)
|
111.15 KB,
image/jpeg
|
Details | |
|
5.13 KB,
patch
|
serhunt
:
review+
blizzard
:
superreview+
|
Details | Diff | Splinter Review |
Build: 10-03 branch build on Mac 9.1-Ja
Steps:
1. Launch browser.
2. Help | About Plug-ins
Result:
You will see the quick time plu-in part is garbled - a screen shot will be followed.
Note:
I motioned this in bug 101967, but OS X works fine now.
bug 93160 has similar problem.
| Reporter | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
It canonly be reproduce on Mac right now since Window Plugins do not return
localized description all the time. reassign to nhotta. I guess it is the
following lines
nsPluginHostImpl.cpp: aDescription.Assign(NS_ConvertASCIItoUCS2(mPluginTag.mD
escription));
nsPluginHostImpl.cpp: aFilename.Assign(NS_ConvertASCIItoUCS2(mPluginTag.mFile
Name));
nsPluginHostImpl.cpp: aName.Assign(NS_ConvertASCIItoUCS2(mPluginTag.mName));
nsPluginHostImpl.cpp: if (aName.Equals(NS_ConvertASCIItoUCS2(mPluginTag.mMi
meTypeArray[index])))
or
nsPluginHostImpl.cpp: mDescription.AssignWithConversion(aPluginTag->mMime
DescriptionArray[aMimeTypeIndex]);
We are not sure what is the charset the plugin return? UTF-8 or something else?
Probably we can assume they are the same charet as our nsIPlatformCharset.
we should find out the charset of mPluginTag.mName by calling nsIPlatformCharset
and then convert it to Unicode properly .
Mark it as P2.
Assignee: yokoyama → nhotta
Priority: -- → P2
Target Milestone: --- → mozilla0.9.6
| Assignee | ||
Comment 3•25 years ago
|
||
There are platform specific implementation nsPluginFile::GetPluginInfo.
For Macintosh, the data is stored in 'STR#' in platform charset (e.g. Shift_JIS
if JA MacOS).
For Windows, ::GetFileVersionInfo is used can what is store in lpData are
treated as char* which I think in platform charset as Macintosh.
BOOL GetFileVersionInfo(
LPTSTR lptstrFilename, // file name
DWORD dwHandle, // ignored
DWORD dwLen, // size of buffer
LPVOID lpData // version information buffer
);
We may apply charset conversion either in the cross platform code or platform
specific code.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•25 years ago
|
||
In nsPluginHostImpl.cpp, char* is used for plugin info, change it to PRUnichar*
would be a large change.
I think we can put a charset conversion code in one of the constructor and keep
the strings as UTF-8 to avoid many changes from char* to PRUnichar*. That would
be a smaller change.
nsPluginTag::nsPluginTag(nsPluginInfo* aPluginInfo)
http://lxr.mozilla.org/seamonkey/source/modules/plugin/base/src/nsPluginHostImpl.cpp#812
Cc to av@netscape.com, would that look okay for you?
Can you attach a patch? My concern is that char* members of the nsPluginTag do
not necessarily initialize at the construction time.
| Assignee | ||
Comment 6•25 years ago
|
||
I have not started changing the code, so no patch yet.
How about changing DOMPluginImpl instead?
Currently, funcitons like GetDescription() use NS_ConvertASCIItoUCS2 which we
can change to appropriate charset conversion.
http://lxr.mozilla.org/seamonkey/source/modules/plugin/base/src/nsPluginHostImpl.cpp#3924
| Assignee | ||
Comment 7•25 years ago
|
||
| Assignee | ||
Comment 8•25 years ago
|
||
av, could you review the patch?
Comment on attachment 52318 [details] [diff] [review]
Patch to use a charset convertor in DOMMimeTypeImpl and DOMPluginImpl instead of NS_ConvertASCIItoUCS2.
OK, this looks fine to me, given it is tested
and fixes the problem, r=av
Attachment #52318 -
Flags: review+
Comment 10•25 years ago
|
||
Comment on attachment 52318 [details] [diff] [review]
Patch to use a charset convertor in DOMMimeTypeImpl and DOMPluginImpl instead of NS_ConvertASCIItoUCS2.
sr=blizzard
Attachment #52318 -
Flags: superreview+
| Assignee | ||
Comment 11•25 years ago
|
||
Checked in to the trunk.
Please also test Windows and Linux because the fix is cross platform.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 12•25 years ago
|
||
*** Bug 103748 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 13•25 years ago
|
||
*** Bug 93160 has been marked as a duplicate of this bug. ***
| Reporter | ||
Comment 14•25 years ago
|
||
Not reproducible on 11-16 trunk build, mark it as verified.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•