#685 strange windows scintilla window text problem


There is an odd problem with the scintilla edit control on windows. This comes up in scite,
and the latest purebasic. I use a screen reader, and whenever I
alt+tab to the application, it starts reading strange things. When I examine
the scintilla window with AutoIt window info (a
program that is part of the free autoit scripting language), it's
showing a bunch of strange text in the visible text tab which my
screen reader is reading which
I don't think should be there.

To reproduce this problem, open Scite, and open a few files. Run
autoit window info, go to the scite window and freeze it (control-alt-f). Go back to the
frozen autoit window info window and select visible text.


  • Neil Hodgson

    Neil Hodgson - 2008-05-30
    • priority: 5 --> 2
    • assigned_to: nobody --> nyamatongwe
    • status: open --> open-invalid
  • Neil Hodgson

    Neil Hodgson - 2008-05-30

    Logged In: YES
    Originator: NO

    I have no idea what AutoIt or the screen reader are doing. Doesn't look like a bug to me.

  • Tyler Spivey

    Tyler Spivey - 2008-05-31

    Logged In: YES
    Originator: YES

    I think I've found the problem. Sorry if this is duplicated, I sent it once but didn't get any notification of it.
    Somewhere between 1.7.4 and 1.7.5, sending a WM_GETTEXT message to the Scintilla control is returning Garbage. This worked fine in 1.7.4, but when I tested with 1.7.5 and 1.7.6, it returns garbage.

  • Neil Hodgson

    Neil Hodgson - 2008-06-01
    • priority: 2 --> 3
    • status: open-invalid --> open-accepted
  • Neil Hodgson

    Neil Hodgson - 2008-06-01

    Logged In: YES
    Originator: NO

    WM_GETTEXT is behaving the same as before but Scintilla is now often a wide character window so the caller is assuming the data is in UTF-16 format. Retrieving the data as UTF-16 is not trivial so it would be simplest to just fail the operation or return an empty string when IsWindowUnicode is true. WM_GETTEXT has been deprecated as a Scintilla API for 8 years now so it should be being used by any client code.

  • Neil Hodgson

    Neil Hodgson - 2014-05-10
    • labels: Scintilla --> Scintilla, windows
    • Description has changed:


    • status: open-accepted --> open-fixed
  • Neil Hodgson

    Neil Hodgson - 2014-05-22
    • status: open-fixed --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks