Closed Bug 43108 Opened 24 years ago Closed 24 years ago

Ja chars in the window title are displayed as dots on a Ja Red Hat

Categories

(Core :: Internationalization, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: ji, Assigned: pavlov)

Details

(Whiteboard: [nsbeta3-])

Attachments

(6 files)

Build: 2000061908 linux comm build.

On "Japanese" Red Hat 6.2, the Japanese characters in the window title are
displayed as
dots. Ja chars used to be displayed correctly on a Japanese Red Hat although 
they
are displayed as question marks in a English Red Hat + Japanese package
environment.

Steps of reproduce.
1. Launch browser
2. Open a EUC html file with Japanese title. (will attach a testing html file
later)

You'll see the japanese chars in the window title are displayed as dots.
Specified Japanese system in the summary.
Summary: Ja chars in the window title are displayed as dots. → Ja chars in the window title are displayed as dots on a Ja Red Hat
On build 2000062020 on Win2k JA chars are displayes as ???? in the window title, 
even though the JA chars are displayed correctly in both the thread and message 
pane.
Gemal, what you're seeing is probably a seprate bug.
You're probably running non-Japanese Windows2000, is that
right? If so, there will be a generic Windows title display 
problem in supporting characters not native to that OS's
default language.
Whta this bug is about is that on Japanese OSs, the title
in Japanese should show correctly. 
ji- What is your locale when you see the problem ? do a setenv (what is the LANG 
and LC_ALL ?)
What will happen if you set LANG to ja and relaunch it?
Status: NEW → ASSIGNED
The locale I used for Japanese is ja_JP, which is the default Japanese locale
when you login from a Japanese login window. "ja" Japanese locale name is the
one we used in an En RH6.0 + Japanese packages environment and this "ja" locale
name is not usable anymore on Japanese Red Hat 6.2.
By the way the window title in an En RH6.0 + Japanese packages environment
also has Japanese displayed as dots.
I though I fix this for Korean. jshin@pantheon.yale.edu qa that for me.
jshin@pantheon.yale.edu - can you verify this in the Korean locale ?
Keywords: nsbeta3
As Frank wrote, it was fixed a few months ago at least for Korean. But,
I'm not sure what has happened since. I'll check it for Linux as soon as I'm
back from South America and my DSL link is up and running. As for other platforms,I tried
M16 under MacOS9 recently and it seems to work fine if I register it for
Korean using Language register(my memory is vague here so that
I have to try it again when I'm back)
nsbeta3- per i18n bug meeting for now. Jungshik Shin , is this a regression on 
Linux . Forget about Mac or window in this bug. This is a linux only bug report. 
Whiteboard: [nsbeta3-]
I reported this bug back in January in the I18N newsgroup
(refer to <news://news.mozilla.org/84t9li$8n42@secnews.netscape.com> and
follow-ups thereof by me and Frank) and Frank made a patch right away, which
fixed the problem. Howerver, the newest nightly build I've just tried (buils ID :
2000080421) has exactly the same bug. Somehow, the bug resurrected.
I'll check the source later. (now with my DSL link on, I can download the source)
ji observed this problem with the 6/19/2000 M17 Linux build.
I have an M16 build from 6/13/2000 and it is OK there.
So, it broke somewhere between M16 and M17.

 
in the cvs log of mozilla/ widget/ src/ gtk/ nsWindow.cpp 
http://bonsai.mozilla.org/cvslog.cgi?file=mozilla/widget/src/gtk/nsWindow.cpp
1.290  dbaron%fas.harvard.edu  Aug 16 16:18   Fix string leaks from 
nsWindow::SetTitle. r=pavlov b=49148
1.285 <pavlov@netscape.com> 28 Jul 2000 16:59 fix for mem leak bug 43580 r=slamm
1.278 pavlov%netscape.com Jun 9 14:13  fix for some window managers not setting 
the titlebar anymore. nsbeta2+ bug 41786. r=bryner
1.274  pavlov%netscape.com Jun 6 17:11  fix for unix i18n title bug 36039 
r=alecf
1.271 pavlov%netscape.com May 3 14:46 try to speed up SetTitle a tad

Tajima-san, can you try this ? we probably should try the SetTitle in the 2.284 
version and see can we see this bug. 
Reassign this to tajima

Currently this bug is mark as nsbeta3-. But if we can get fix from sun, I think 
we can take the fix.
Assignee: ftang → tajima
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
if the font used by your window manager for window titles isn't a japanese font,
then they probably won't display.
Japanese title is broken by "// TWM sucks and doesn't support compound text..
argh" and the next block of codes to set WM title in XStringStyle.
The problem is gone by commenting them out. Reassinging for review.
Assignee: tajima → pavlov
Status: ASSIGNED → NEW
we have to do this check, otherwise TWM gets a blank window title.  if GetWMName
is returning failure and causing us to set it every time even when we shouldn't,
then that should be looked at.  I know this code works with sawfish.
Does the code works in sawfish even for JA title?
Does sawfish take JA title in STRING encoding??

Ah, the return value of XGetWMName should be evaluated reversely.
I'll attach a new code diff, please review it again.
Attached, hoping this is what you want.
I wonder we may use XStdICCTextStyle at the 1st call
instead of XCompoundTextStyle. We may skip the 2nd call
of XStringStyle.
could you please post a patch against the current version of nsWindow from CVS?
Attached patch patchSplinter Review
is this last patch right?  if so, r=pavlov
 >could you please post a patch against the current version of nsWindow from
CVS?
A quetion. Your patch(15:32) is from the revision 1.288,
while mine(14:40) is from the 1.292.
 >is this last patch right?  if so, r=pavlov
Which patch shall be checked-in?
argh, i'm not up to date.. sorry. check in yours.
Thanks. I sent Code diffs(14:40) to waterson@mozilla.org for check-in approval.
check in, a=wateron.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
This checkin just broke bug XXXXX again (aka "TWM sucks"). I'm reopening it. We
should not be using COMPOUND_TEXT unless a locale is set that requires it.

Argh, bugzilla is horked at the moment so I'll find the other bug later.
Ok, the bug I was thinking of is 41786. What this fix breaks is the use of
XFetchName() to get the window title. I don't think that we should require
window managers to do something special here: XFetchName() is the standard way
to read the WM_NAME property.
Does it work using XStdICCTextStyle instead of COMPOUND_TEXT at the 1st
XmbTextListToTextProperty call? The encoding would be STRING
if given text is convertible to STRING, else COMPOUND_TEXT. Decklin, will 
you give a try?
BTW, XFetchName only works when the title string is STRING convertible,
so I don't think using this can the solution for i18n requirement.
Doesn't work, unfortunately... I'll see if I can hack on it.
Argh, ignore that past comment, I changed the wrong call (line 2227). Changing
the style on the first call (line 2204) does fix it. This looks like the right
thing to do. Can you check this in?
checked in the fix.
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
Verified with linux 2000082906 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: