mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-11-02 20:43:49 +01:00
"wstring::length()" returns less needed byte number because this methode consider 2 bytes character as 1 character, whereas "strlen(char*)" returns the total byte number in the char*. Since SCI_ADDTEXT uses UTF8 char* as argument, it'll be more accurate to count the length (total byte number) with char* directly. Fix #9009, fix #8525, close #9014