I agree with Don in that this just needs documenting, and is not a bug.

On 24 October 2016 at 05:45, Bill <[email protected]> wrote:

> Qt works on unicode characters, but j uses utf8 for interfacing with Qt so
> that I think this issue is a bug, it should report byte offset.  Please
> file a bug in jwiki for record.
>
> On 24 Oct, 2016, at 1:28 PM, Don Guinn <[email protected]> wrote:
>
> > 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
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to