Closed
Bug 74123
Opened 24 years ago
Closed 22 years ago
in Arabic/Hebrew/Indic/Thai keyboard, mozilla assert a lot
Categories
(Core :: Internationalization, defect, P2)
Tracking
()
VERIFIED
FIXED
Future
People
(Reporter: ftang, Assigned: ftang)
References
Details
(Keywords: intl)
Attachments
(1 file)
2.08 KB,
patch
|
Details | Diff | Splinter Review |
If I switch to Arabic/Hebrew/Indic/Thai keyboard and type space, mozilla will
assert because it will convert the space into 3 unicode. a RLO + space + PDF
In that case, we should ignore the RLO and PDF.
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Comment 2•24 years ago
|
||
not a perfect solution. We can still only return one keycode here. (We should be
able to generate n keypress event for this one)
But this patch will reduce the chance we hit assert.
Status: NEW → ASSIGNED
Assignee | ||
Updated•24 years ago
|
Target Milestone: --- → mozilla0.9
Comment 3•24 years ago
|
||
Please fix the tab to be spaces.
Please correct typo in first printf in debug: "on" --> "one"
Please correct typo in last assertion in diff: "ConverFrom" --> "ConvertFrom"
Is there another bug filed for the case we don't handle correctly (more than one
unicode)? If so, it might be good to put that bug # in the assertion or in the
comments near where it says "fix me"
r=brade
Comment 4•24 years ago
|
||
I can't imagine that the proper solution for the case where we want to do more
than one keypress is hard. This method could just return an array of PRUint32,
and a number, like:
// outChars allocated by the caller, probably on stack
// ioNumChars -> on input, max number of slots in outChars
// on output, number of outChars filled
void nsMacEventHandler::ConvertKeyEventToUnicode(EventRecord& aOSEvent, PRUint32
outChars[], PRInt32 &ioNumChars)
Then the calling routine can just iterate through the values passed back.
Assignee | ||
Comment 5•24 years ago
|
||
simon-
The problem is the caller is currently nsMacEventHandler::InitializeKeyEvent and
it's caller is nsMacEventHandler::HandleKeyEvent. and
nsMacEventHandler::HandleKeyEvent is the one which call
DispatchWindowEvent(keyEvent);
It is not "that hard" to fix it. But it at least require me to change at least 3
functions at once to make it work (HandleKeyEvent, InitializeKeyEvent, and
ConvertKeyEventToUnicode) . I feel very very nervous to change
InitializeKeyEvent. It is not hard to change ConvertKeyEventToUnicode and
HandleKeyEvent at all)
I suggest we take a step-by-step approach. Check in this part to make the most
cases working first. and rewrite that part a little bit later.
brade- what do you think ?
Assignee | ||
Comment 6•24 years ago
|
||
still need to talk to sfraser about this issue. move to moz0.9.1
Target Milestone: mozilla0.9 → mozilla0.9.1
Comment 7•24 years ago
|
||
Nominating for nsbeta1.
Assignee | ||
Comment 8•24 years ago
|
||
nhotta- I am overload . can you help drive this one ?
Assignee: ftang → nhotta
Status: ASSIGNED → NEW
Comment 9•24 years ago
|
||
Conversion Control Flags:
http://developer.apple.com/techpubs/macos8/TextIntlSvcs/TextEncodingConversionMa
nager/TEC1.5/TEC.6d.html
Conversion Control Masks:
http://developer.apple.com/techpubs/macosx/Carbon/text/TextEncodConversionMgr/Te
xt_Encodin_sion_Manager/Enumerations/Conversion_Control_Masks.html
Comment 10•24 years ago
|
||
Move to 0.9.2 and reassign to ftang.
Assignee: nhotta → ftang
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Assignee | ||
Comment 11•24 years ago
|
||
remove moz0.9.2
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9.2 → ---
Comment 12•24 years ago
|
||
Ftang - Are you saying we don't need this one for M0.9.2?
Comment 13•24 years ago
|
||
Marking as nsbeta1-, as we have not set a milestone for this one.
Comment 14•23 years ago
|
||
Setting to M0.9.2 | P2 for now. Ftang, pls change, if you think this is
inappropriate.
Priority: -- → P2
Target Milestone: --- → mozilla0.9.2
Assignee | ||
Comment 15•23 years ago
|
||
we don't have time to work on Mac BIDI now . remove moz0.9.2
Target Milestone: mozilla0.9.2 → ---
Assignee | ||
Comment 16•23 years ago
|
||
move to future. No time to work on Mac Arabic now.
Target Milestone: --- → Future
Assignee | ||
Comment 17•23 years ago
|
||
this problem can be addressed by patch in bug 77038
Comment 18•23 years ago
|
||
ftang: now that bug 77038 is marked as fixed, can you revisit this one and
confirm whether the patch there fixed this issue also?
Comment 19•23 years ago
|
||
ylong: can you verify this bug being fixed by 77038?
Comment 20•23 years ago
|
||
I just checked it with Hebrew keyboard layout, seems work fine.
Assignee | ||
Comment 21•22 years ago
|
||
mark it as fixed
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•