#628 setlocale bug

Bug
closed-fixed
Scintilla (796)
3
2016-03-16
2007-11-13
No

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.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2007-11-15

    Logged In: YES
    user_id=12579
    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
    user_id=1935977
    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
    user_id=12579
    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