[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multibyte characters in the Hardstatus line
From: |
Michael Schroeder |
Subject: |
Re: Multibyte characters in the Hardstatus line |
Date: |
Mon, 23 Apr 2007 20:28:17 +0200 |
User-agent: |
Mutt/1.4.2.1i |
On Wed, Mar 28, 2007 at 12:04:09PM +0200, Zvi Har'El wrote:
> Comparing Unicode, it replaces U+03B1 GREEK SMALL LETTER ALPHA with
> U+00B1 PLUS-MINUS SIGN and so on, i.e, the Unicode values seem to be
> taken modulo U+0100.
Yes, it's because StringChar() in ansi.c discards the upper bits.
To fix this bug we'd have to change the way the string gets stored.
Note that we can't just simply transcode to the display's encoding,
as the window may be displayed on multiple displays with different
encodings...
Cheers,
Michael.
--
Michael Schroeder address@hidden
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Multibyte characters in the Hardstatus line,
Michael Schroeder <=