[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Interesting things found in ncurses that affect screen
From: |
Juergen Weigert |
Subject: |
Re: Interesting things found in ncurses that affect screen |
Date: |
Mon, 18 Jul 2005 12:04:43 +0200 |
User-agent: |
Mutt/1.4.2.1i |
CC added:address@hidden
On Jul 17, 05 21:19:38 +0200, Nikolai Weibull wrote:
> OK, so once again something weird happened while I was using a ncurses
> application in screen. It's been working fine for a long time and then
> boom, something weird's going on, I'm not getting pretty line-drawing
> characters any more. So I swear a bit and begin looking into screen,
> ncurses, and the applications code and come up with this wonderful piece
> of code from ncurses:
>
> ncurses-5.4/ncurses/tinfo/lib_setup.c:
>
> /*
> * Check for known broken cases where a UTF-8 locale breaks the alternate
> * character set.
> */
> NCURSES_EXPORT(int)
> _nc_locale_breaks_acs(void)
> {
> char *env = getenv("TERM");
> if (env != 0) {
> if (strstr(env, "linux"))
> return 1; /* always broken */
> if (strstr(env, "screen") != 0
> && ((env = getenv("TERMCAP")) != 0
> && strstr(env, "screen") != 0)
> && strstr(env, "hhII00") != 0) {
> return 1;
> }
> }
> return 0;
> }
>
> So, what's the deal?
That is odd.
We should ask upstream ncurses when and why this code appeared.
Upstream is still Thomas Dickey, right?
Thomas, are you following this?
cheers,
Jw.
--
o \ Juergen Weigert unix-software __/ _=======.=======_
<V> | address@hidden creator __/ _---|____________\/
\ | 0179/2069677 __/ (____/ /\
(/) | ____________________________/ _/ \_ vim:set sw=2 wm=8
Re: Interesting things found in ncurses that affect screen,
Juergen Weigert <=