Dear Maintainer, I have some problemas today using Kate and Kwrite. It puts a space before when I write some characters in a Brazilian ABNT keyboard. I found this problem with the characters ' and ". Here are some examples: When I write Paraná, kate shows Paran á When I write conseqüências, kate shows conseq üências. This problem does not occour with the characters `, ^,~ and the problem only happens with kate and kwrite. Other editors and apps does not show this problem.
Hi Hmmm, I am not sure what a Brazilian ABNT kbd is, but I tried "compound" characters like ö ä ü etc which I usually use, and they don't produce any space. Maybe something in the input layer (ibus/fcitx/fctix5) or someone else is doing this. I don't think kate transforms the characters received from the input layer in any way. Have you tried other **Qt** applications, too? Best Norbert
Em qua., 8 de set. de 2021 às 21:12, Norbert Preining <norbert@preining.info> escreveu: fine. Best regards
I did a test creating a file with the accented letters (my language is LANG=it_it), getting these results: $ date > prova-accentate-àèéìòù-test $ ls -ll -rw-r--r-- 1 root root 31 9 set 21.34 prova-accentate-àèéìòù-test $ ls prova-accentate-àèéìòù-test | hd 00000000 70 72 6f 76 61 2d 61 63 63 65 6e 74 61 74 65 2d |prova-accentate-| 00000010 e0 e8 e9 ec f2 f9 2d 74 65 73 74 0a |àèéìòù-test.| This test is ok--- $ kate prova-accentate-àèéìòù-test $ ls -ll -rw-r--r-- 1 root root 31 9 set 21.35 prova-accentate-ᅵᅵᅵᅵᅵᅵ-test $ ls prova-accentate-ᅵᅵᅵᅵᅵᅵ-test | hd 00000000 70 72 6f 76 61 2d 61 63 63 65 6e 74 61 74 65 2d |prova-accentate-| 00000010 ef bf bd ef bf bd ef bf bd ef bf bd ef bf bd ef |ᅵᅵᅵᅵᅵï| 00000020 bf bd 2d 74 65 73 74 0a |¿œ-test.| This test has an unexpected result, It seems that Kate does not manage these characters...
Hi all, - filename is encoded in latin1 - kate expects utf8 - kate replaces the non-interpretable characters from latin1 with � (Unicode "REPLACEMENT CHARACTER") which has hex utf-8 bytes EF BF BD which you see in the hd output: I have never tried running KDE in a *non UTF-8* locale, that might be problematic. I tried to reproduce this with LANG=de_AT@euro kate (this is a iso locale defined on my computer) but kate always uses utf8. So I suggest that you make sure that your locales are properly set up, and match with the settings of kde. Best Norbert
Hi. I have done a few tests on a virtual machine and I have discovered that the problem is with ibus latest package. I have problems with ibus 1.5.25 and it is only fixed when I downgrade it to 1.5.24. So I think that we should reassign this bug to ibus. Regards, Adilson Em qui., 9 de set. de 2021 às 19:50, Norbert Preining <norbert@preining.info> escreveu:
I tried downgrade but the problem remains. If for you it works, it means that you have solved only a part of the problem. Norbert's deductions are correct, I also saw the source code and it looks internally Kate work only in utf-8, so it does not seem to be an environment problem but of application or of libraries (and for this reason it may also concern more applications). The confirm of this: if I try to open the same file with LibreOffice Writer from console (with "lowriter filename"), instead it works properly. Il 11/09/21 04:45, Adilson dos Santos Dantas ha scritto: