The return from (wd 'sm get edit') contains the text behind the window and
select showing a selection. The text is literal and the select gives
indices of selected characters. If text contains any unicode characters,
like line drawing characters the indices are offset. The indices are not in
bytes, but characters. Converting the text to either literal2 or literal4
makes the select indices correct.


I don't think that this is an error, but one must convert the text to
literal2 or literal4 to get the index to work. Should the index reflect the
U8 selection index instead of the literal2 or literal4 indices? A little
inconsistency.


I haven't been able to find where this kind of information is covered, but
it may be there somewhere. Is this the way it's supposed to work? If so,
not a problem, but it needs to be documented. I learned how it works by
experimenting. There is no Discussion on the Window_Driver/Session_Manager
page, I can put in it what I have found so far, but I suspect that there is
a lot more that should be covered.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to