|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1857 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1857.
Report 1857 Actions
Problem Report Number 1857 Submitter's Classification Minor System Fault State Resolved Resolution Minor System Fault (MSF) Problem Resolution ID MSF.X.0078 Raised 2001-07-12 08:00 Updated 2003-03-13 08:00 Published 2001-07-20 08:00 Expiry Date 2002-07-19 Product Standard Window System Application Interface V2 Certification Program The Open Brand certification program Test Suite VSW version 5.1.2 Test Identification Xlib14/XSetICFocus 1 Linked Problem Reports PIN4W.00025, (in, old, system) Problem Summary MSF4W.00028 A temporary waiver is requested for a minor problem with XCreateIC(). Problem Text
(Also affected: Xlib14/XwcResetIC Purpose 1)
Tests XSetICFocus and XwcResetIC fail as UNRESOLVED with VSW5.1.2
These tests PASS with VSW5.1.1.
The change implemented in 5.1.2 to resolve TSD4W.00168 causes these
new failures.
Possibly related to other failures where input context cannot be created.
(refer to PIN4W.00025)
Testing was performed in the C locale.
When using XCreateIC as in (1) a NULL is returned indicating a failure
to create a input context.
(1) ic_value = XCreateIC(im_value,
XNClientWindow, win,
XNInputStyle, (XIMPreeditNone | XIMStatusNone),
XNResourceName, "im_rname",
XNResourceClass, "IM_rclass",
NULL);
If XCreateIC is used as in (2), a NULL is not returned.
The tests XSetICFocus and XwcResetIC will PASS.
(2) ic_value = XCreateIC(im_value,
XNClientWindow, win,
XNInputStyle, (XIMPreeditNone | XIMStatusNone),
NULL);
Case (1) is GOOD with locale en_US.UTF-8 (set using LC_ALL).
According to the Xlib specification, section 13.5.6, values for
Resource Name and Resource Class should be ignored by the input method.
with styles XIMPreeditNone or XIMStatusNone.
This seems to be the case in a locale other than C.
XCreateIC should not return NULL with these styles and Resources
set.
We also request a clarification about the useage of XCreateIC
in the ic_open() function in src/xim/ic.c, especially when the
locale is C, support for which is not required with input methods.
Is it realistic to attempt to set these resources if style
is (XIMPreeditNone | XIMStatusNone) and locale is C ?Test Output
70||"VSW5TESTSUITE CASE XSetICFocus 1"
110|1677 /tset/Xlib14/sicfoc/Test 21:31:49|Build Start, scenario ref 1133-0
130|1677 0 21:31:53|Build End, scenario ref 1133-0
10|1678 /tset/Xlib14/sicfoc/Test 21:31:53|TC Start, scenario ref 1133-0
15|1678 3.1-lite 1|TCM Start
400|1678 1 1 21:31:58|IC Start
200|1678 1 21:31:58|TP Start
520|1678 1 00022324 1 1|VSW5TESTSUITE PURPOSE 1
520|1678 1 00022324 1 2|Assertion XSetICFocus-1.(C)
520|1678 1 00022324 1 3|If the implementation is X11R5 or later: A call to
520|1678 1 00022324 1 4|XSetICFocus shall set input context focus.
520|1678 1 00022324 1 5|PREP: Create a window for test.
520|1678 1 00022324 1 6|TEST: XSetICFocus sets input context focus.
520|1678 1 00022324 1 7|ERROR: ic_open() returned NULL
220|1678 1 2 21:31:58|UNRESOLVED
410|1678 1 1 21:31:58|IC End
80|1678 0 21:31:59|TC End, scenario ref 1133-0
70||"VSW5TESTSUITE CASE XwcResetIC 1"
110|1710 /tset/Xlib14/wcreic/Test 21:33:42|Build Start, scenario ref 1155-0
130|1710 0 21:33:45|Build End, scenario ref 1155-0
10|1711 /tset/Xlib14/wcreic/Test 21:33:45|TC Start, scenario ref 1155-0
15|1711 3.1-lite 1|TCM Start
400|1711 1 1 21:33:50|IC Start
200|1711 1 21:33:50|TP Start
520|1711 1 00022849 1 1|VSW5TESTSUITE PURPOSE 1
520|1711 1 00022849 1 2|Assertion XwcResetIC-1.(C)
520|1711 1 00022849 1 3|If the implementation is X11R5 or later: A call to
520|1711 1 00022849 1 4|XwcResetIC shall reset the state of an input context to
its
520|1711 1 00022849 1 5|initial state.
520|1711 1 00022849 1 6|PREP: Create a window for test.
520|1711 1 00022849 1 7|TEST: XwcResetIC resets the state of an input
520|1711 1 00022849 1 8| context to its initial state
520|1711 1 00022849 1 9|ERROR: could not find a supported IM style the test can
use
220|1711 1 2 21:33:50|UNRESOLVED
410|1711 1 1 21:33:50|IC End
80|1711 0 21:33:51|TC End, scenario ref 1155-0
A test program to exercise XCreateIC in 2 locales was run - results below;
* en_US.UTF-8
$ ./testic
GOOD ! Set locale: en_US.UTF-8
Styles supported for this IM: 20
Locale associated with this IM: en_US.UTF-8
Using XCreateIC for each style...
Supported Styles IM: 0x202
GOOD: 0x202 ic_value was NOT NULL !
Supported Styles IM: 0x102
GOOD: 0x102 ic_value was NOT NULL !
Supported Styles IM: 0x402
GOOD: 0x402 ic_value was NOT NULL !
Supported Styles IM: 0x204
GOOD: 0x204 ic_value was NOT NULL !
Supported Styles IM: 0x104
GOOD: 0x104 ic_value was NOT NULL !
Supported Styles IM: 0x404
GOOD: 0x404 ic_value was NOT NULL !
Supported Styles IM: 0x201
GOOD: 0x201 ic_value was NOT NULL !
Supported Styles IM: 0x101
GOOD: 0x101 ic_value was NOT NULL !
Supported Styles IM: 0x401
GOOD: 0x401 ic_value was NOT NULL !
Supported Styles IM: 0x208
GOOD: 0x208 ic_value was NOT NULL !
Supported Styles IM: 0x108
GOOD: 0x108 ic_value was NOT NULL !
Supported Styles IM: 0x408
GOOD: 0x408 ic_value was NOT NULL !
Supported Styles IM: 0x802
GOOD: 0x802 ic_value was NOT NULL !
Supported Styles IM: 0x804
GOOD: 0x804 ic_value was NOT NULL !
Supported Styles IM: 0x801
GOOD: 0x801 ic_value was NOT NULL !
Supported Styles IM: 0x808
GOOD: 0x808 ic_value was NOT NULL !
Supported Styles IM: 0x210
GOOD: 0x210 ic_value was NOT NULL !
Supported Styles IM: 0x110
GOOD: 0x110 ic_value was NOT NULL !
Supported Styles IM: 0x410
GOOD: 0x410 ic_value was NOT NULL !
Supported Styles IM: 0x810
GOOD: 0x810 ic_value was NOT NULL !
* C
$ LC_ALL=C;export LC_ALL
$ ./testic
GOOD ! Set locale: C
Styles supported for this IM: 1
Supported Style IM: 0x810
Locale associated with this IM: C
Using XCreateIC for each style...
Supported Styles IM: 0x810
ERROR: XCreateIC returned a NULL input context for 0x810
Done ..!Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
The failure of XCreateIC() to ignore the extra Resource Name
and Resource Class values does seem to be a minor problem which
would not have much impact on application portability, and a
temporary waiver is recommended.
As regards this usage of XCreateIC() in ic_open(), it is assumed
that the function works this way purely to make the code simpler.
The usage is valid because the Xlib specification requires that
the additional values will be ignored by XCreateIC().
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Minor System Fault (MSF) Review Conclusion
A Temporary Waiver is granted.
Problem Reporting System Options:
- View Report 1857
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority