Closed Bug 49559 Opened 24 years ago Closed 24 years ago

JPN characters disappear at the beginning of a line when they are an anchor for an URL link

Categories

(Core :: Internationalization, defect, P1)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: momoi, Assigned: shanjian)

Details

(Whiteboard: [nsbeta3+]fix checked in.)

Attachments

(4 files)

** Observed with 8/18/2000 Win32 M18 build **
** Observed (so far) only under Win 98-Japanese **
** This bug was first reported by a JPN Mozilla volunteer. **

Problem:

1. Create a HREF link and as part of the anchor, insert some Japanese characters. For example,

   <A HREF=http://.......> JPN_word</A>

2. When displaying this line, make the Browser window smaller so that the right edge of the window
   is slightly in front of the anchor word created above.
3. So at this point, all characters of "JPN_word" will have moved to 2nd line.
4. But you see that in this particular case, a couple of JPN characters have disppeared.
5. Now if you reload from the source again, the 2 characters get displayed.
   Looks like somehow re-painting does not occur completely for this type of 
   words when the entire word moves to the next line.

Additional notes:

I tried the test case below under Japanese 98 and NT4 using the same 8/18/2000 M18
build. But so far I have been able to reproduce this problem under only Win 98-Japanese.


I'll attach 2 images below illustrating what the problem looks like.
Also the test case.
Summary: JPN characters disappear at the beginning of a line when they describe HREF link → JPN characters disappear at the beginning of a line when they describe HREF link
Look at the 2nd line of this image.
Now contrast this with the 2nd image when the line break just occurred.
I'll attach below the test case provided by a JPN Mozilla volunteer.
Note that when you make the Brower window smaller to the point when
the anchor word moves to the next line, the word

メーリングリスト

shows as 

リングリスト

As I said above, I tried this a number of times on NT4 but could not reproduce it.
On Win 98-J, it is very to reproduce this problem.
Summary: JPN characters disappear at the beginning of a line when they describe HREF link → JPN characters disappear at the beginning of a line when they are an anchor for an URL link
The test case (attachment 3 [details] [diff] [review]) is in EUC-JP.
reassign this to shanjian and mark it nsbeta3
It looks the line break correctly. You can see the first line have the space for 
the first two characters in the japanese link. However, some code does not paint 
it when it should. 
Have we test Linux/Mac ?
Have we test Win95J/NTJ ? Win95US / NTUS ?
IF this problem also happen on Linux/Mac and all other Window. Then this is a 
generic problem
If this problem only happen on Window. Then this may related to the MeasureText 
routine that troy #ifdef XP_WIN (or XP_PC) 
If this problem only happen on Japanese version of Win95/98 but not Japanese NT 
nor US 95/NT, then it is related to the GFX code erik work around the Japanese 
95/98 GDI crashing problem

nsbeta3
Keywords: nsbeta3
     IF this problem also happen on Linux/Mac and all other Window. Then this is 
a 
     generic problem
     If this problem only happen on Window. Then this may related to the 
MeasureText 
     routine that troy #ifdef XP_WIN (or XP_PC) 
     If this problem only happen on Japanese version of Win95/98 but not 
Japanese NT 
     nor US 95/NT, then it is related to the GFX code erik work around the 
Japanese 
     95/98 GDI crashing problem
I cannot reproduce this problem on Mac nsbeta2
I think the bug is in those #ifdef _WIN32 code inside the nsTextFrame.cpp . If I 
change them into #ifdef 0 and recompile it, I cannot reproduce them. So, we 
should look at the #ifdef _WIN32 code in the nsTextFrame.cpp

reassign to shanjian
Assignee: nhotta → shanjian
Marking nsbeta3+ per I18N bug triage.
Priority: P3 → P1
Whiteboard: [nsbeta3+]
Status: NEW → ASSIGNED
Attached patch proposed fixSplinter Review
Whiteboard: [nsbeta3+] → [nsbeta3+]wait for code review
Need some discussion.
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Whiteboard: [nsbeta3+]wait for code review → [nsbeta3+]fix checked in.
I verified this in 2000-09-05-08 Win32 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: