Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 223179 - BIDI3.4:HCG Hebrew data in Java editor is treated different from Win OS
Summary: BIDI3.4:HCG Hebrew data in Java editor is treated different from Win OS
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-19 06:28 EDT by Ira Fishbein CLA
Modified: 2008-03-26 14:35 EDT (History)
6 users (show)

See Also:


Attachments
Java project with Hebrew data for import (2.92 KB, application/octet-stream)
2008-03-19 06:28 EDT, Ira Fishbein CLA
no flags Details
Mac (problematic) screenshot (23.93 KB, image/jpeg)
2008-03-19 06:32 EDT, Ira Fishbein CLA
no flags Details
Win (correct) screenshot (25.05 KB, image/jpeg)
2008-03-19 06:32 EDT, Ira Fishbein CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ira Fishbein CLA 2008-03-19 06:28:44 EDT
Created attachment 92882 [details]
Java project with Hebrew data for import

Build ID: IES3.4 B20080207-1530
Platform: MAC OS X 10.5

1. Import java project from attached zip (you should use UTF-8 encoding)
2. Open Hebrew-named java file and examine line 9.
Result: hebrew data is treated wrongly. I am attaching screenshot of the same file on Win and Mac OSs
Comment 1 Ira Fishbein CLA 2008-03-19 06:32:29 EDT
Created attachment 92883 [details]
Mac (problematic) screenshot
Comment 2 Ira Fishbein CLA 2008-03-19 06:32:56 EDT
Created attachment 92884 [details]
Win (correct) screenshot
Comment 3 Dani Megert CLA 2008-03-20 03:26:34 EDT
To summarize: you are saying that it looks OK on Windows but not on Mac OS, right? Are only the Java strings rendered wrongly?
Comment 4 Ira Fishbein CLA 2008-03-20 08:03:08 EDT
Yes, it looks OK on Windows but not on Mac OS.
This problem was solved for Windows and it is starnge it doesn't work for Mac.
On Windows there is BidiSegmentListener that was added to JavaEditor. May be this addition doesn't exist on Mac?
Comment 5 Dani Megert CLA 2008-03-20 08:11:44 EDT
>On Windows there is BidiSegmentListener that was added to JavaEditor. May be
>this addition doesn't exist on Mac?
The listener is always added but maybe SWT isn't calling or honoring it.
Comment 6 Felipe Heidrich CLA 2008-03-24 11:41:47 EDT
The BidiSegmentListener is not called in Mac.
Comment 7 Felipe Heidrich CLA 2008-03-24 17:59:21 EDT
Fixed in HEAD > 20080324 - Bog please include this fix in M6 for testing.

Fixed TextLayout to implement setSegments
Fixed StyledText to return isBidi()==true on the mac

Note: BidiSegmentListener will get called on the time on the mac from now on.