| Ticket UUID: | 1719282 | |||
| Title: | unixSelect test suite errors | |||
| Type: | Bug | Version: | obsolete: 8.5a6 | |
| Submitter: | lvirden | Created on: | 2007-05-15 13:17:21 | |
| Subsystem: | 53. [selection] | Assigned To: | hobbs | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2026-10-22 17:22:34 | |
| Resolution: | Out of Date | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-09-30 11:50:03 | |||
| Description: |
Platform: sun sparc solaris 9, sun c compiler, tcl/tk cvs head, windows xp pro and exceed 10 X server
==== unixSelect-1.4 TkSelGetSelection procedure: simple i18n text, iso2022 FAILE
D
==== Contents of test case:
setupbg
setup
selection handle -type COMPOUND_TEXT -format COMPOUND_TEXT . {handler COMPO
UND_TEXT}
selection own .
set selValue \u00fc\u0444
set selInfo {}
set result [dobg {
set x [selection get -type COMPOUND_TEXT]
list [string equal \u00fc\u0444 $x] [string length $x] [string byteleng
th $x]
}]
cleanupbg
lappend result $selInfo
---- Result was:
1 2 4 {COMPOUND_TEXT 0 4000 COMPOUND_TEXT 0 4000}
---- Result should have been (exact matching):
1 2 4 {COMPOUND_TEXT 0 4000}
==== unixSelect-1.4 FAILED]
==== unixSelect-1.5 TkSelGetSelection procedure: INCR i18n text, iso2022 FAILED
==== Contents of test case:
# This test is subtle. The selection ends up getting fetched twice by
# Tk: once to compute the length, and again to actually send the data.
# The first time through, we don't convert the data to ISO2022, so the
# buffer boundaries end up being different in the two passes.
setupbg
setup
selection handle -type COMPOUND_TEXT -format COMPOUND_TEXT . {handler COMPO
UND_TEXT}
selection own .
set selValue [string repeat x 3999]\u00fc\u0444[string repeat x 3999]
set selInfo {}
set result [dobg {
set x [selection get -type COMPOUND_TEXT]
list [string equal [string repeat x 3999]\u00fc\u0444[string repeat x 3
999] $x] [string length $x] [string bytelength $x]
}]
cleanupbg
lappend result $selInfo
---- Result was:
1 8000 8002 {COMPOUND_TEXT 0 4000 COMPOUND_TEXT 4000 3999 COMPOUND_TEXT 7998 400
0 COMPOUND_TEXT 0 4000 COMPOUND_TEXT 4000 3999 COMPOUND_TEXT 7998 4000 COMPOUND_
TEXT 0 4000 COMPOUND_TEXT 4000 3998 COMPOUND_TEXT 7997 4000}
---- Result should have been (exact matching):
1 8000 8002 {COMPOUND_TEXT 0 4000 COMPOUND_TEXT 4000 3999 COMPOUND_TEXT 7998 400
0 COMPOUND_TEXT 0 4000 COMPOUND_TEXT 4000 3998 COMPOUND_TEXT 7997 4000}
==== unixSelect-1.5 FAILED
==== unixSelect-1.6 TkSelGetSelection procedure: simple i18n text, iso2022 FAILE
D
==== Contents of test case:
setupbg
setup
selection handle -type COMPOUND_TEXT -format COMPOUND_TEXT . {handler COMPO
UND_TEXT}
selection own .
set selValue \u00fc\u0444
set selInfo {}
set result [dobg {
set x [selection get -type COMPOUND_TEXT]
list [string equal \u00fc\u0444 $x] [string length $x] [string byteleng
th $x]
}]
cleanupbg
lappend result $selInfo
---- Result was:
1 2 4 {COMPOUND_TEXT 0 4000 COMPOUND_TEXT 0 4000}
---- Result should have been (exact matching):
1 2 4 {COMPOUND_TEXT 0 4000}
==== unixSelect-1.6 FAILED
| |||
| User Comments: |
serhiy.storchaka added on 2026-09-30 11:50:03:
Most likely the same cause as [1719278]: Exceed makes the X selection available to the Windows clipboard, so it requests the PRIMARY selection as well, and the extra calls of the handlers show up in the results. The unixSelect tests test the PRIMARY selection of the entry widget, so they cannot use a private selection like the select tests in [610188]. They pass on Linux/X11, also with a client that polls the selection. Closing as out of date. lvirden added on 2008-10-15 01:43:07: just an update. Using SPARC Solaris 8 as the location where code was compiled and runs, displaying back to windows xp sp3 and exceed 10.0.0.12, and using tk 8.5.4 release code, I continue to see the identical problems reported here. lvirden added on 2008-10-15 01:16:56: just an update. Using SPARC Solaris 8 as the location where code was compiled and runs, displaying back to windows xp sp3 and exceed 10.0.0.12, and using tk 8.5.4 release code, I continue to see the identical problems reported here. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki