Version: 3.4.1 (using KDE 3.4.3, Kubuntu Package 4:3.4.3-0ubuntu2 ) Compiler: Target: i486-linux-gnu OS: Linux (i686) release 2.6.10-5-386 At (my) present version, Kompare shows the ascii characters for UTF-8 text. It would be useful to have Kompare displaying Unicode (optionally, e.g. Settings->File Is UTF-8). This will be especially useful for translation folks, and also later when people need to diff UTF-coded text.
Completely agree. I'd like to see unicode support for kompare, it would make it a very useful tool
*** This bug has been confirmed by popular vote. ***
It seems that Kompare supports utf-8, if the locales are set appropriately (setting only LC_CTYPE is not enough, but LANG, LC_ALL and LC_CTYPE should work). But there is another problem: It is possible to specify UTF8 even if it is not locale default, but this setting is ignored. The following patch corrects the problem, at least for me (but I am not sure if it does not introduce other problems :-) )
Created attachment 18174 [details] Do not ignore encoding settings
Hi Richard, is there any chance to see your patch included in the main branch ? I'm working with the kde 3.5.5 release 45.1 made by the openSuSe factory for the 10.1 distribution. And for sure not supporting utf-8 in kompare is really something annoyng for us like all other people not working with ascii art :-) Thanks to help on this issue
Isnt this going to be fixed in branch_3.5?
I did applyied this patch (in attachement id=18174) but when running kompare i continued seeing that doesnt support utf-8 when using the default encoding that in this case (Mandriva 2007) is utf-8. Kompare only supports utf-8 if in encoding option is selected utf-8 and this doesnt make much sense since the default distro encoding is utf-8 so kompare should support utf-8 when using default encoding and wich isnt the case. Also this report should never be set as a wish since this is a bug.
It's not resolve in 3.5.5 I'm using the lastest build from OpenSuse factory. When I kompare 2 text files which are encoded in utf-8 on my OpenSuse 10.1 box which have also utf-8. Kompare doesn't care about what we give to it as encode (utf-8, iso8859 ... ) The render view is ugly with false encoding for caracters. I agree on the fact that's not a wish, that should be a bug, and it certainly time to fix it before the move to qt4 and kde4x series.
Additionally, there is no way to set encoding when only viewing existing patch file in kompare, for example with this command: #kfmclient exec some.patch
Is this maybe related to (or duplicate of) bugs 95054 and 112729?
Yes, the supplied patch (id=18174) works great!
This is fixed in trunk for KDE4 and the KDE 3.5 branch.
Reopening to mark as duplicate...
*** This bug has been marked as a duplicate of 112729 ***