Re: incorrect hex number in editor



On Tue, 5 Sep 2006 12:18:54 +0200 Egmont Koblinger <egmont uhulinux hu> wrote:

> Fedora is using mc with the UTF-8 patches, and provides a full UTF-8
> environment, right?
> 
> Then the file you described above should display as 2 characters, a
> LATIN SMALL LETTER U WITH DIAERESIS
> followed by a
> LATIN SMALL LETTER U WITH MACRON

Yes, in UTF-8 it's correct.

> Hence the expected hex codes in the upper right corner of mcedit are
> 0xFC and 0x16B. This is different from what you expect, and different from
> what you see, too.
> 
> mcedit is a text editor, whereas the word "text" nowadays usually refers to
> UTF-8 encoding. Hence with the UTF-8 mc patches it is no longer a binary/hex
> editor.

But it should either show correct hex codes or correct UTF-8 letters, which it
does not. BTW, I am not using UTF-8 locale.

Regards,
Nerijus



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]