Subject: Re: German "Umlauts" in vi
To: Hans Dinsen-Hansen <dino@danbbs.dk>
From: Martin Gerbing <martin@gerbing.net>
List: netbsd-users
Date: 02/10/2002 19:44:07
Hello,

thx for the help. Now my editor works ;))).

Thx again,
Martin


On Sun, Feb 10, 2002 at 04:12:46PM +0000, Hans Dinsen-Hansen wrote:
> On Sun, 10 Feb 2002 14:40:15 +0100, you wrote:
> 
> >Hello,
> >
> >I have a little problem with the german "Umlauts" in vi.
> >
> >I set the encoding to de (wsconsctl -k -w encoding=de) and the console shows
> >me all "umlauts" correct (oe, ae, ue, ss). ...
> 
> Well, the attached "dirty" patches will do it.  Just feed them to sh
> and build a new libc.
> 
> Afterwards, vi will not only show ãöü, but ~ will even make them ÄÖÜ.
> 
> http://www.danbbs.dk/~dino/
> mailto:dino@danbbs.dk

> cd /usr/src/lib/libc/gen
> patch ctype_.c << 'EOF'
> 38a39
> >  *  Dirty latin1 correction "Dino" Mon Apr  1 1996
> 72c73,89
> < 	_L,	_L,	_L,	_P,	_P,	_P,	_P,	_C
> ---
> > 	_L,	_L,	_L,	_P,	_P,	_P,	_P,	_C,
> > 	0,	0,	0,	0,	0,	0,	0,	0,
> > 	0,	0,	0,	0,	0,	0,	0,	0,
> > 	0,	0,	0,	0,	0,	0,	0,	0,
> > 	0,	0,	0,	0,	0,	0,	0,	0,
> > 	_P|_B,	_P,	_P,	_P,	_P,	_P,	_P,	_P,
> > 	_P,	_P,	_P,	_P,	_P,	_P,	_P,	_P,
> > 	_P,	_P,	_P,	_P,	_P,	_P,	_P,	_P,
> > 	_P,	_P,	_P,	_P,	_P,	_P,	_P,	_P,
> > 	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_U,
> > 	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_U,
> > 	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_U,
> > 	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_L,
> > 	_L,	_L,	_L,	_L,	_L,	_L,	_L,	_L,
> > 	_L,	_L,	_L,	_L,	_L,	_L,	_L,	_L,
> > 	_L,	_L,	_L,	_L,	_L,	_L,	_L,	_L,
> > 	_L,	_L,	_L,	_L,	_L,	_L,	_L,	_L
> EOF
> patch tolower_.c << 'EOF'
> 5a6
> >  *  Dirty latin1 correction "Dino" Mon Apr  1 1996
> 46,49c47,50
> < 	0xc0,	0xc1,	0xc2,	0xc3,	0xc4,	0xc5,	0xc6,	0xc7,
> < 	0xc8,	0xc9,	0xca,	0xcb,	0xcc,	0xcd,	0xce,	0xcf,
> < 	0xd0,	0xd1,	0xd2,	0xd3,	0xd4,	0xd5,	0xd6,	0xd7,
> < 	0xd8,	0xd9,	0xda,	0xdb,	0xdc,	0xdd,	0xde,	0xdf,
> ---
> > 	0xe0,	0xe1,	0xe2,	0xe3,	0xe4,	0xe5,	0xe6,	0xe7,
> > 	0xe8,	0xe9,	0xea,	0xeb,	0xec,	0xed,	0xee,	0xef,
> > 	0xf0,	0xf1,	0xf2,	0xf3,	0xf4,	0xf5,	0xf6,	0xd7,
> > 	0xf8,	0xf9,	0xfa,	0xfb,	0xfc,	0xfd,	0xfe,	0xdf,
> EOF
> patch toupper_.c << 'EOF'
> 5a6
> >  *  Dirty latin1 correction "Dino" Mon Apr  1 1996
> 50,53c51,54
> < 	0xe0,	0xe1,	0xe2,	0xe3,	0xe4,	0xe5,	0xe6,	0xe7,
> < 	0xe8,	0xe9,	0xea,	0xeb,	0xec,	0xed,	0xee,	0xef,
> < 	0xf0,	0xf1,	0xf2,	0xf3,	0xf4,	0xf5,	0xf6,	0xf7,
> < 	0xf8,	0xf9,	0xfa,	0xfb,	0xfc,	0xfd,	0xfe,	0xff
> ---
> > 	0xc0,	0xc1,	0xc2,	0xc3,	0xc4,	0xc5,	0xc6,	0xc7,
> > 	0xc8,	0xc9,	0xca,	0xcb,	0xcc,	0xcd,	0xce,	0xcf,
> > 	0xd0,	0xd1,	0xd2,	0xd3,	0xd4,	0xd5,	0xd6,	0xf7,
> > 	0xd8,	0xd9,	0xda,	0xdb,	0xdc,	0xdd,	0xde,	0xff
> EOF