Closed Bug 90910 Opened 23 years ago Closed 23 years ago

Long word is truncated on conversion

Categories

(Core :: Internationalization, defect, P2)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.5

People

(Reporter: kazhik, Assigned: tetsuroy)

References

Details

(Keywords: intl)

Attachments

(1 file)

Japanese string which has over 31 characters is truncated on IME
conversion.

(1) Register a long word. For example,

Yomi: "Bagujira"
Goku: "http://www.mozilla.gr.jp/docs/beginbugzilla.html"

(2) Enter "Bagujira" and hit space bar to convert it. The result is:

"http://www.mozilla.gr.jp/docs/b"

Build: 2001071408/Win2k
Reassign to yokoyama, cc to shanjian.
Assignee: nhotta → yokoyama
Keywords: intl
Changed QA contact to ylong@netscape.com.
QA Contact: andreasb → ylong
accepting and setting the milestone to 0.9.3 to see if I can fix this in time.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.3
Moving milestone to 0.9.4 
Target Milestone: mozilla0.9.3 → mozilla0.9.4
I guess it could be problem in the following lines in
mozilla/widget/src/windows/nsWindow.cpp

5046:        mIMEAttributeString = new PRUint8[attrStrLen+32];
5047:        mIMEAttributeStringSize = attrStrLen+32;
5056:        mIMEAttributeString = new PRUint8[attrStrLen+32];
5057:        mIMEAttributeStringSize = attrStrLen+32;
5079:        mIMECompClauseString = new PRUint32 [compClauseLen+32];
5080:        mIMECompClauseStringSize = compClauseLen+32;
5096:        mIMECompClauseString = new PRUint32 [compClauseLen+32];
5097:        mIMECompClauseStringSize = compClauseLen+32;

or could around it. 

move to m0.9.5
Keywords: nsbranch
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Blocks: 99171
nsbranch- since Frank moved it to 0.9.5
Keywords: nsbranchnsbranch-
shanjian: can you review my patch?
That's a good catch. r=shanjian
Attachment #50189 - Flags: review+
waterson: can you /sr=?
Comment on attachment 50189 [details] [diff] [review]
Need to specify mIMECompUnicode->mCapacity in byte

sr=waterson
Attachment #50189 - Flags: superreview+
checked into the trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Fixed verified on 10-01 trunk build / Win2k.
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: