Closed Bug 83685 Opened 24 years ago Closed 24 years ago

Wrong display of window titles under MacOS (English)

Categories

(SeaMonkey :: General, defect)

PowerPC
Mac System 9.x
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 36689

People

(Reporter: formanek, Assigned: nhottanscp)

References

()

Details

(Keywords: platform-parity)

BuildID: 2001050518 In case a US script is currently active in a MacOS, Mozilla is incapable of displaying any other then ISO-8859-1 character in the title of a window. If the title of the page is in a different language then english and Mozilla runs with the US script active, only characters leading up to the first non ISO-8859-1 character are displayed and the rest is truncated. The page content is handled properly and is displayed in the correct charset. Reproducible: Always Steps to Reproduce: 1: Run any Mozilla (even localized builds) under MacOS US and load any page, which has TITLE with non ISO-1 characters. You can find an example at http://www.mozilla.cz/demo/ (Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:0.9) Gecko/20010505) also any 0.8.1 or older builds
confirm that I see this problem; problem is probably in widget/src/mac/ nsMacControl.cpp (nsMacControl::StringToStr255) nhotta last touched this code; reassign to him.
Assignee: asa → nhotta
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: pp
This is a dup of bug 36689 - Mac window title doesn't display non-ASCII characters when using US system. I think SetWTitle assumes input as a system charset (e.g. MacRoman). If there is an API to take unicode then we want to use it. Or if we know about the charset of the document then we may map a charset to a script ID and temporary change a font of the graf port. 1078 NS_IMETHODIMP nsMacWindow::SetTitle(const nsString& aTitle) 1079 { 1080 Str255 title; 1081 // unicode to file system charset 1082 nsMacControl::StringToStr255(aTitle, title); 1083 ::SetWTitle(mWindowPtr, title); 1084 return NS_OK; 1085 }
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
reopen, it's a dup
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
*** This bug has been marked as a duplicate of 36689 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → DUPLICATE
Well, probably window title is not affected by the current port setting, so either need unicode API by Apple or need window title by xptoolkit.
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.