Closed Bug 74753 Opened 23 years ago Closed 20 years ago

Can't use intl characters in <window title="...">

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dr, Assigned: chofmann)

References

(Blocks 1 open bug)

Details

(Keywords: helpwanted)

Attachments

(2 files)

280 bytes, application/vnd.mozilla.xul+xml
Details
332 bytes, application/vnd.mozilla.xul+xml
Details
Mozilla and Linux in general have no problem displaying international (eg.
ISO-8859-1) characters in a window's titlebar, but on Linux you can not specify
a window title in XUL to contain those characters. This *does* work on Windows,
and I haven't tested Mac.

If you put a non-ascii character in a <window title="...">, such as en-dash
(&#8211; in XML), that character and all text following it do not appear in the
title.
I'm hoping this is something brainless like using a char* instead of a PRUnichar*...
Blocks: 22871, 74172
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla0.9
Attached file simple testcase
attached testcase. afaik, to see the window title, you have to put the testcase
in chrome and load mozilla with the chrome url you give it...
Keywords: mozilla1.0
Keywords: mozilla1.0
Whoa. There's lots of strange fu going on in gtk/nsWindow.cpp::SetTitle:

  http://lxr.mozilla.org/seamonkey/source/widget/src/gtk/nsWindow.cpp#2044

It must work, though -- int'l characters in the subject line of a mail
composition window show up in the title bar just fine, and I assume that gets
set through here.
Man. I have no idea what's going on here. I tried to trace through the codepath
for setting window title from xul with danm, and compared that to the codepath
for setting window title via the subject line in mail compose, and we found
nothing telling. This also may or may not be related to bug 9449...

->future, helpwanted... Hopefully somebody knows how to stomp on this properly.
Keywords: helpwanted
Target Milestone: mozilla0.9 → Future
Reference also bug 36689 (Mac OS 8/9) and bug 92503 (Mac OS X).
Assignee: dr → chofmann
Status: ASSIGNED → NEW
Priority: P3 → --
Target Milestone: Future → ---
[spam] dr@netscape.com's bugs subject to redistribution by chofmann. R!
*** Bug 110347 has been marked as a duplicate of this bug. ***
This should have been resolved as fixed a long time ago because it's fixed in
2001. (see bug 9449 comment #39 and bug 110347 comment #11)


Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: