Bug 73047 - kwrite doesn't want to save my file - it complains about inapropriate encoding
Summary: kwrite doesn't want to save my file - it complains about inapropriate encoding
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-20 18:41 UTC by Piotrek
Modified: 2004-02-17 21:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotrek 2004-01-20 18:41:15 UTC
Version:           4.2 (using KDE 3.2.0 RC1, compiled sources)
Compiler:          gcc version 3.2.3
OS:          Linux (i686) release 2.4.24

I'm using polish version of KDE 3.2 RC1 from slackware 9.1 precompiled packages.
Everytime when I'm trying to save a file containing at least one polish letter, KWrite displays a message saying (in polish) something like: "document couldn't be saved, because selected encoding us unable to keep every unicode character. If you're not sure what encoding should you use try UTF-8 or UTF-16". I tried ISO 8859-2 (which should be the right one), then both UTFs and some randomly chosen, even cp1250, but i still get the same error window and I'm unable to save any file with polish characters.
Comment 1 Christoph Cullmann 2004-01-20 20:21:19 UTC
works for me here, just typed some polish chars, saved, kate/kwrite said: "no won't work" (as I had isolatin-1 on), did choose latin-2 => could save it without probs
Comment 2 Christoph Cullmann 2004-01-20 20:22:38 UTC
works for me here, just typed some polish chars, saved, kate/kwrite said: "no won't work" (as I had isolatin-1 on), did choose latin-2 => could save it without probs (but me has qt 3.3 installed, could be qt issue, will ask other developers to recheck)
Comment 3 Thiago Macieira 2004-01-21 18:49:36 UTC
I've just tested with a file with this only letter:
	ł

Saving it in ISO-8859-1 complains about encoding, as expected. Saving it in ISO-8859-2, UTF-8 and UTF-16 succeeds, without any warnings.

$ kde-config --version
Qt: 3.2.3
KDE: 3.1.94 (CVS >= 20031206)
kde-config: 1.0
(HEAD 20031222)
Comment 4 Piotrek 2004-01-21 22:07:27 UTC
Can't say why it happens to me. Could it be because of my kde-i18n-pl package ? maybe something's wrong with it? The only polish letter i can use in a file is "ó" but any other causes that i'm unable to save files. Changing encodings doesn't change this situation.
Hmm, maybe the way I installed the packages has something to do with it? First i used 'removepkg' and removed all KDE 3.1.5 packages (i18n-pl too) and qt, and then used 'installpkg' to install KDE 3.2 RC1 (including i18n-pl) packages and new Qt.

my `kde-config --version` output:
Qt: 3.2.3
KDE: 3.2.0 RC1
kde-config: 1.0
Comment 5 Christoph Cullmann 2004-01-24 12:37:01 UTC
no idea either, it works here and for thiago, and utf8/16 are even hardcoded to allow to save the doc in all cases :/
Comment 6 Christoph Cullmann 2004-02-17 21:09:10 UTC
I close this bug now, it works for me, there is a hardcoded fallback for the utf-8 and utf-16 case, can't do more