[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multibyte characters in the Hardstatus line
From: |
Wang, Roger |
Subject: |
Re: Multibyte characters in the Hardstatus line |
Date: |
Mon, 6 Apr 2009 13:40:10 +0800 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hi Michael,
I used the attached patch so the utf8 hardstatus would display
correctly in my xterm titlebar. Is it ok or how could I improve it?
Thanks in advance.
Roger
On Mon, Apr 23, 2007 at 08:28:17PM +0200, Michael Schroeder wrote:
> 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);}
>
>
utf8-hstatus.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Multibyte characters in the Hardstatus line,
Wang, Roger <=