For UTF-8 and especially for UTF-16 encodings, Notepad++ (tested with version 6.5) apparently shows sometimes wrong figures for number of characters and words in the “Summary” dialogue (View – Summary ...).
Please refer to patch #481 for a more detailed description and some testfiles to show / proof the bugs.
Furthermore, Scintilla 3.3.x provides a much more efficient function to get the number of selected characters, independently of encoding (SCI_COUNTCHARACTERS).
Finally, there are different subroutines at different places (ScintillaEditView.cpp and Notepad_plus.cpp) for the status bar and the Summary dialogue doing nearly the same things, but just nearly and with bugs. I’ve tidied that up.
Please see the attached patch, which corrects the bugs, improves and tidies up the code.
(comment code is xCountUnicodeCharsAndBytes: and xUTF16EOLRecognition: )