[ 
https://issues.apache.org/jira/browse/PIVOT-850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049745#comment-16049745
 ] 

Roger Whitcomb commented on PIVOT-850:
--------------------------------------

Okay, so the problem with currency symbols and most foreign language symbols is 
fixed under OS X (and Windows).

But, there is a problem with entering *Emoji* (at least under El Capitan, 
haven't tested elsewhere) that gets the following exception from native code 
(so it looks like a JVM bug, tested under 8u131):
2017-06-14 15:13:30.102 java[5780:3697534] -[NSConcreteMutableAttributedString 
lengthOfBytesUsingEncoding:]: unrecognized selector sent to instance 
0x7fb03ab59b40
2017-06-14 15:13:30.102 java[5780:3697534] An uncaught exception was raised
2017-06-14 15:13:30.102 java[5780:3697534] -[NSConcreteMutableAttributedString 
lengthOfBytesUsingEncoding:]: unrecognized selector sent to instance 
0x7fb03ab59b40
2017-06-14 15:13:30.106 java[5780:3697534] (
        0   CoreFoundation                      0x00007fff8d941452 
__exceptionPreprocess + 178
        1   libobjc.A.dylib                     0x00007fff8a26973c 
objc_exception_throw + 48
        2   CoreFoundation                      0x00007fff8d9ab18d 
-[NSObject(NSObject) doesNotRecognizeSelector:] + 205
        3   CoreFoundation                      0x00007fff8d8b14c1 
___forwarding___ + 1009
        4   CoreFoundation                      0x00007fff8d8b1048 
_CF_forwarding_prep_0 + 120
        5   libawt_lwawt.dylib                  0x00000001202099e2 -[AWTView 
insertText:replacementRange:] + 71
        6   AppKit                              0x00007fff8df036e0 
-[NSTextInputContext(NSInputContext_WithCompletion) 
insertText:replacementRange:completionHandler:] + 79
        7   AppKit                              0x00007fff8df03683 
__55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2250 + 
127
        8   AppKit                              0x00007fff8df035f5 
-[NSTextInputContext 
do_HandleTSMEvent_insertFixLenTextLoop:whileCondition:dispatchWorkEach:afterEachInsertText:continuation:]
 + 181
        9   AppKit                              0x00007fff8e60fc2f 
-[NSTextInputContext 
tryHandleTSMEvent_insertFixLenText_withContext:dispatchCondition:setupForDispatch:nestedWorkaroundCondition:nestedWorkaroundDispatchWork:loopCondition:dispatchWorkEach:afterEachInsertText:continuation:]
 + 428
        10  AppKit                              0x00007fff8df03053 
__55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke176 + 
4253
        11  AppKit                              0x00007fff8df01ec8 
__55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2 + 95
        12  AppKit                              0x00007fff8df01e3b 
-[NSTextInputContext 
tryHandleTSMEvent_HasMarkedText_withDispatchCondition:dispatchWork:continuation:]
 + 101
        13  AppKit                              0x00007fff8df01b2b 
-[NSTextInputContext handleTSMEvent:completionHandler:] + 3173
        14  AppKit                              0x00007fff8df00e5a 
_NSTSMEventHandler + 324
        15  HIToolbox                           0x00007fff899047be 
_ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec 
+ 1231
        16  HIToolbox                           0x00007fff89903c48 
_ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec
 + 404
        17  HIToolbox                           0x00007fff89903aab 
SendEventToEventTargetWithOptions + 43
        18  HIToolbox                           0x00007fff89958f7d 
SendTSMEvent_WithCompletionHandler + 417
        19  HIToolbox                           0x00007fff89b0ca81 
__SendUnicodeTextAsUnicodeForKeyEvent_WithCompletionHandler_block_invoke + 796
        20  HIToolbox                           0x00007fff899592bf 
__SendFilterTextEvent_WithCompletionHandler_block_invoke + 189
        21  HIToolbox                           0x00007fff89958fcd 
SendTSMEvent_WithCompletionHandler + 497
        22  HIToolbox                           0x00007fff89958daf 
SendFilterTextEvent_WithCompletionHandler + 236
        23  HIToolbox                           0x00007fff89b0b2fc 
__SendTextInputEvent_WithCompletionHandler_block_invoke + 1089
        24  HIToolbox                           0x00007fff89b0c632 
__SendTSMDocumentLockEvent_WithCompletionHandler_block_invoke + 95
        25  HIToolbox                           0x00007fff8995bb41 
___ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec_block_invoke
 + 108
        26  AppKit                              0x00007fff8df01350 
-[NSTextInputContext handleTSMEvent:completionHandler:] + 1162
        27  AppKit                              0x00007fff8df00e5a 
_NSTSMEventHandler + 324
        28  HIToolbox                           0x00007fff899047be 
_ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec 
+ 1231
        29  HIToolbox                           0x00007fff89903c48 
_ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec
 + 404
        30  HIToolbox                           0x00007fff89903aab 
SendEventToEventTargetWithOptions + 43
        31  HIToolbox                           0x00007fff89958f7d 
SendTSMEvent_WithCompletionHandler + 417
        32  HIToolbox                           0x00007fff89b08686 
TrySendLockEvent_BeforeEventToInputMethod_WithContinuationHandler + 351
        33  HIToolbox                           0x00007fff89b08808 
__TSMEventToInputMethod_WithCompletionHandler_block_invoke_2 + 159
        34  HIToolbox                           0x00007fff89b6718d 
__49-[IMKInputSession handleEvent:completionHandler:]_block_invoke_2494 + 2804
        35  HIToolbox                           0x00007fff89b6617a 
__49-[IMKInputSession handleEvent:completionHandler:]_block_invoke_2451 + 680
        36  HIToolbox                           0x00007fff89b4c568 -[IMKClient 
switchedInputMode:completionHandler:] + 418
        37  HIToolbox                           0x00007fff89b64ed4 
-[IMKInputSession 
tryHandleEventSwitchedInputMode:eventWasHandled:continuationHandler:] + 133
        38  HIToolbox                           0x00007fff89b65e8f 
__49-[IMKInputSession handleEvent:completionHandler:]_block_invoke450 + 193
        39  HIToolbox                           0x00007fff89b65c9a 
__49-[IMKInputSession handleEvent:completionHandler:]_block_invoke + 373
        40  HIToolbox                           0x00007fff89b71a23 
-[IMKInputSession _eventIsOn:completionHandler:] + 1886
        41  HIToolbox                           0x00007fff89b65498 
-[IMKInputSession handleEvent:completionHandler:] + 895
        42  HIToolbox                           0x00007fff89b18a29 
IMKInputSessionProcessEventRefWithCompletionHandler + 128
        43  HIToolbox                           0x00007fff89b17ee1 
InputMethodInstanceProcessEventRef_WithCompletionHandler + 109
        44  HIToolbox                           0x00007fff89b0874f 
__TSMEventToInputMethod_WithCompletionHandler_block_invoke + 124
        45  HIToolbox                           0x00007fff89b0c632 
__SendTSMDocumentLockEvent_WithCompletionHandler_block_invoke + 95
        46  HIToolbox                           0x00007fff8995bb41 
___ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec_block_invoke
 + 108
        47  AppKit                              0x00007fff8df01350 
-[NSTextInputContext handleTSMEvent:completionHandler:] + 1162
        48  AppKit                              0x00007fff8df00e5a 
_NSTSMEventHandler + 324
        49  HIToolbox                           0x00007fff899047be 
_ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec 
+ 1231
        50  HIToolbox                           0x00007fff89903c48 
_ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec
 + 404
        51  HIToolbox                           0x00007fff89903aab 
SendEventToEventTargetWithOptions + 43
        52  HIToolbox                           0x00007fff89958f7d 
SendTSMEvent_WithCompletionHandler + 417
        53  HIToolbox                           0x00007fff89b08686 
TrySendLockEvent_BeforeEventToInputMethod_WithContinuationHandler + 351
        54  HIToolbox                           0x00007fff89b084c3 
TSMEventToInputMethod_WithCompletionHandler + 154
        55  HIToolbox                           0x00007fff89b08409 
TSMEventToKeyboardInputMethod_WithCompletionHandler + 127
        56  HIToolbox                           0x00007fff89b093e5 
SendTextInputEvent_WithCompletionHandler + 1204
        57  HIToolbox                           0x00007fff89b75474 
-[IMKInputSession _postEvent:completionHandler:] + 184
        58  HIToolbox                           0x00007fff89b710f3 
-[IMKInputSession insertText:completionHandler:] + 126
        59  HIToolbox                           0x00007fff89b7cced 
__43-[IMKInputSession imkxpc_insertText:reply:]_block_invoke + 613
        60  CoreFoundation                      0x00007fff8d8d640c 
__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
        61  CoreFoundation                      0x00007fff8d8b5c55 
__CFRunLoopDoBlocks + 341
        62  CoreFoundation                      0x00007fff8d8b59bb 
__CFRunLoopRun + 2347
        63  CoreFoundation                      0x00007fff8d8b4e28 
CFRunLoopRunSpecific + 296
        64  HIToolbox                           0x00007fff8992c935 
RunCurrentEventLoopInMode + 235
        65  HIToolbox                           0x00007fff8992c76f 
ReceiveNextEventCommon + 432
        66  HIToolbox                           0x00007fff8992c5af 
_BlockUntilNextEventMatchingListInModeWithFilter + 71
        67  AppKit                              0x00007fff8dd5adf6 
_DPSNextEvent + 1067
        68  AppKit                              0x00007fff8dd5a226 
-[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
        69  libosxapp.dylib                     0x00000001200753aa 
-[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
        70  AppKit                              0x00007fff8dd4ed80 
-[NSApplication run] + 682
        71  libosxapp.dylib                     0x000000012007514d 
+[NSApplicationAWT runAWTLoopWithApp:] + 156
        72  libawt_lwawt.dylib                  0x0000000120248edf -[AWTStarter 
starter:] + 905
        73  Foundation                          0x00007fff8f0b809e 
__NSThreadPerformPerform + 279
        74  CoreFoundation                      0x00007fff8d8d67e1 
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
        75  CoreFoundation                      0x00007fff8d8b5f0c 
__CFRunLoopDoSources0 + 556
        76  CoreFoundation                      0x00007fff8d8b542f 
__CFRunLoopRun + 927
        77  CoreFoundation                      0x00007fff8d8b4e28 
CFRunLoopRunSpecific + 296
        78  java                                0x0000000105e3c465 
CreateExecutionEnvironment + 871
        79  java                                0x0000000105e3818c JLI_Launch + 
1952
        80  java                                0x0000000105e3e4c2 main + 101
        81  java                                0x0000000105e379e4 start + 52


> Fail to take input characters other than English in Mac Lion
> ------------------------------------------------------------
>
>                 Key: PIVOT-850
>                 URL: https://issues.apache.org/jira/browse/PIVOT-850
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk, wtk-terra
>    Affects Versions: 2.0.1, 2.0.2, 2.0.3
>         Environment: Mac Lion
>            Reporter: Brendan
>            Assignee: Roger Whitcomb
>              Labels: jre, mac
>             Fix For: 2.5
>
>         Attachments: ASF.LICENSE.NOT.GRANTED--Input to Mac Lion of Chinese 
> Character show nothing.jpg, ASF.LICENSE.NOT.GRANTED--Window 7 and Text Area 
> to show Chinese Input as Box.jpg, inputProblem.png, Screen Shot 2013-03-11 at 
> 10.56.51 AM.png, Screen Shot 2013-03-11 at 10.59.23 AM.png, Screen Shot 
> 2013-03-11 at 11.00.14 AM.png, WebStartInput.png
>
>
> In Mac Lion, no Chinese and Korean character can appear in TextInput and 
> TextArea thru the input method.
> However, these components can take the character thru copy and paste.
>  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to