#628 setlocale bug

Scintilla (796)

Scintilla is crashed when open a css file which contains Korean characters. I think that the reason is isalnum call in the LexCSS.cxx file. You must set locale properly before calling the isalnum function.

I add setlocale(LC_ALL, "") before creating Scintilla window, and the problem is solved.


  • Neil Hodgson

    Neil Hodgson - 2007-11-15

    Logged In: YES
    Originator: NO

    Its because the call to isalnum doesn't check that the character is ASCII first like other lexers, such as LexEiffel do. I won't be implementing a fix for this.

  • Neil Hodgson

    Neil Hodgson - 2007-11-15
    • priority: 5 --> 3
    • assigned_to: nobody --> nyamatongwe
    • status: open --> open-accepted
  • YoungJin Shin

    YoungJin Shin - 2007-11-15

    Logged In: YES
    Originator: YES

    You're right.
    Do you mean that change the CSS lexer?
    I think that crash is a big problem.
    Many Korean users suffer from this bug.

  • Neil Hodgson

    Neil Hodgson - 2007-11-16

    Logged In: YES
    Originator: NO

    Yes, you should change the CSS lexer.

  • Neil Hodgson

    Neil Hodgson - 2016-02-23
    • status: open-accepted --> open-fixed
  • Neil Hodgson

    Neil Hodgson - 2016-03-16
    • 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:

JavaScript is required for this form.

No, thanks