Bug 112729 - Kompare doesnt render utf-8 correctly
Summary: Kompare doesnt render utf-8 correctly
Status: RESOLVED FIXED
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: 3.4.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords:
: 123683 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-16 15:06 UTC by Jakub Friedl
Modified: 2007-12-19 09:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Avoid overwriting the selected charset (encoding) (892 bytes, patch)
2007-06-01 16:50 UTC, Jan Zimmerschied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Friedl 2005-09-16 15:06:57 UTC
Version:           3.4.1 (using KDE KDE 3.4.2)
Installed from:    SuSE RPMs
OS:                Linux

Kompare doesnt show utf-8 encoded files correctly. Two-byte Czech characters are shown as garbage (usually as a character followed by a square).
Comment 1 Matej Cepl 2005-09-24 02:57:29 UTC
Nazdar Jakube (isn't it strange, that two Czechs are meeting on this issue :-)),

the problem IMHO is that kompare somehow doesn't recognize UTF-8 as such, but  tries to interpret it as plain 8bit charset. I can say that I have exactly the same problem with the same version of kompare (from KDE 3.4.1) under Debian/etch (packages from alioth.debian.org).
Comment 2 Mirko 2005-12-29 16:30:34 UTC
under Suse 9.1 Prof. is all ok.
ab Suse 9.2 is this Problem. I go to 9.1 and copie the kompare binary in my Suse 10.0 /opt/kde3/bin directory. 
Comment 3 Bozidar Proevski 2006-01-25 20:16:56 UTC
This is a duplicate for bug 95054. Maybe it will get fixed this time
Comment 4 Jan Zimmerschied 2007-06-01 16:50:53 UTC
Created attachment 20753 [details]
Avoid overwriting the selected charset (encoding)

I think this patch can resolve following listed bugs 39108, 95054, 112729,
123683, 131280.
This patch avoids kompare to overwrite the charset (encoding) selected in the
file open dialog with the default charset defined by operating system.
Hopefully,
Jan
Comment 5 George Goldberg 2007-12-19 09:19:59 UTC
This is fixed in trunk for KDE4 and the KDE 3.5 branch.
Comment 6 Kevin Kofler 2007-12-19 09:21:58 UTC
Sorta... You still have to pick UTF-8 manually even in a UTF-8 locale, the default should be UTF-8.
Comment 7 George Goldberg 2007-12-19 09:23:29 UTC
Sorry, a little aggressive with the closing bugs there! will try and find a fix for that too.
Comment 8 Kevin Kofler 2007-12-19 09:23:48 UTC
*** Bug 123683 has been marked as a duplicate of this bug. ***
Comment 9 Kevin Kofler 2007-12-19 09:41:39 UTC
SVN commit 750428 by kkofler:

Default to locale encoding.
BUG: 112729

 M  +11 -4     komparemodellist.cpp  
 M  +15 -6     kompareprocess.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=750428
Comment 10 Kevin Kofler 2007-12-19 09:43:10 UTC
SVN commit 750429 by kkofler:

Default to locale encoding.
CCBUG: 112729
(backport rev 112729 from trunk)

 M  +14 -5     komparemodellist.cpp  
 M  +15 -6     kompareprocess.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=750429
Comment 11 Kevin Kofler 2007-12-19 09:45:31 UTC
Darn, I wrote the bug number instead of the revision number. Sorry. Too bad commit messages aren't editable.