On 2017-09-04 02:01 AM, lep42 wrote: > Hello, > I Use french font caracteres, my WM locale is defined like fr_FR.utf8. > > When selecting characters on "none" encoded document or ISO8859-1 > the accented characters counts for two byte instead of on. > > exemple: create a document type "é" caracter > and select it >
Hi, Even though the character can be represented in one byte (in UTF-8 or ISO 8859-1), Geany converts to UTF-8 for in-memory representation, and then it must do some processing (ex. normalization) causing it to get split out into the standalone e and the combining diacritical mark ́. This is my guess. That still doesn't explain why Geany shows 2 characters selected, the reason for that is likely that Geany[0] uses very naive byte-based code for the selection count rather than the number of glyphs selected. Regards, Matthew Brush [0]: and/or Scintilla, the widget which provides the editor buffer/manipulations/information. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1599#issuecomment-326916481
