Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 133133 - [Bidi] Numeral contextual behavior is not respected in eclipse editors
Summary: [Bidi] Numeral contextual behavior is not respected in eclipse editors
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.6 M2   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-24 06:45 EST by Ahmed Farrag CLA
Modified: 2009-09-11 12:20 EDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmed Farrag CLA 2006-03-24 06:45:21 EST
Build date: m5a

OS: all

Steps to recreate problem:

1.  Create a new file (Go to file -> New -> File and follow the wizard to create it).
2.  Double click on the file to open it.
3.  Write an Arabic word and then write some numbers.

Expected output:

Numbers are represented in National digits.

Actual output:

Numbers are represented in Nominal digits

Remark:

This happens in all editors.
Comment 1 Felipe Heidrich CLA 2006-03-28 18:21:19 EST
see bug 81834 comment 2.

*** This bug has been marked as a duplicate of 81834 ***
Comment 2 Ahmed Farrag CLA 2009-07-09 03:58:10 EDT
This bug is not duplicate of 81834. It is totally separate problem. Reopening...
Comment 3 Felipe Heidrich CLA 2009-08-24 09:35:20 EDT
(In reply to comment #2)
> This bug is not duplicate of 81834. It is totally separate problem.
> Reopening...
> 

the fix for bug 81834 provides numeric substitution when:
1. In the control panel, under regional and language options, the value for 'Use natives digits' is set to context or native, and standard digits set to Arabic.
In another words, the locale is set to, for example, Arabic (Egypt)
2. the control is created with the SWT.RIGHT_TO_LEFT flag.

The first requirement I cannot change.


Do you want me to change the code so national digit substitution happens when the controls are created with SWT.LEFT_TO_RIGHT was well ?
Comment 4 Felipe Heidrich CLA 2009-09-11 12:20:27 EDT
Fixed in HEAD > 20090911

StyledText will perform digits substitution on the same case when as the native Text control.