[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Kate serious encoding bug [PATCH]
From:       Michael =?iso-8859-1?q?H=E4ckel?= <Michael () Haeckel ! Net>
Date:       2001-08-03 6:54:08
[Download RAW message or body]

Hi,

On Friday, 3. August 2001 01:05, Ilya Konstantinov wrote:
> Hi,
>
> I'm working in UTF-8 charset (which Qt uses when you select ISO-10646-1
> in the Control Center) and Kate, unless applied the following patch,
> opens all documents in ISO-10646-UCS-2 encoding, which is a multibyte
> encoding totally incompatible with ASCII (unlike UTF-8).
>
> There were two bugs:
> 1. It was using KGlobals::kcharset()->name(), which returns a
> QFont::CharSets' character set. In particular, it doesn't make a
> distinction between UTF-8 and ISO-10646-1, calling both Unicode (it's
> correct in terms of fonts, but incorrect in terms of data streams).
> 2. An empty encoding= in katerc overrided the locale encoding. Since
> katerc by default had an empty encoding= parameter, the wrong encoding
> was used.
>
> I don't see much use for the 'myEncoding' variable in Kate, but since
> there's a feature freeze I left it as is.

The charset Kate uses is configurable is Kate's configure dialog.
At least I can read utf-8 documents quite fine here.

Unfortunately it uses a different charset for saving than for reading, which 
makes at least writing of documents impossible.

Regards,
Michael Häckel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic