Subject: Re: German "Umlauts" in vi
To: Martin Gerbing <m.gerbing@gmx.de>
From: Hans Dinsen-Hansen <dino@danbbs.dk>
List: netbsd-users
Date: 02/10/2002 16:12:46
----=_3c669bfe10104180b3e18d9.MFSBCHJLHS
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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=3Dde) 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 =E3=F6=FC, but ~ will even make them =
=C4=D6=DC.

http://www.danbbs.dk/~dino/
mailto:dino@danbbs.dk

----=_3c669bfe10104180b3e18d9.MFSBCHJLHS
Content-Type: text/plain; charset=us-ascii; name=libc.patch.txt
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename=libc.patch.txt

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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0xd5,	0xd6,	0xf7,
> 	0xd8,	0xd9,	0xda,	0xdb,	0xdc,	0xdd,	0xde,	0xff
EOF

----=_3c669bfe10104180b3e18d9.MFSBCHJLHS--