Re: Fehlermeldung Ursprung
Urs Janßen <[email protected]> Fri, 2 Mar 2012 11:34:38 +0100
| Newsgroups | gmane.network.tin.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Mar 02, 2012 at 10:48:47AM +0100, Christian Knoke wrote:
>
> Hallo,
>
> ich bekomme schon seit der Lenny-Version von tin folgende Fehlermeldung:
>
> chris@...:~$ tin -r
> Lese Konfigurations-Datei...
> tin 1.9.6 release 20100522 ("Lochruan") [UNIX] (c) Copyright 1991-2010 Iain Lea.
> Verbinde mit news..............
> Leafnode NNTP Daemon, version 1.11.7.rc1 running at ....... (my fqdn: news.....)
> Fehler im regulären Ausdruck: invalid UTF-8 string an Pos. 21 '.\(([Ww]a[rs]|[Bb]y[lM-3]o):.*\)\s*$'
> Lese Tastaturbelegungen...
> [...]
>
> Leider weiss ich nicht, wo die Meldung herkommt und wie ich sie wegbekomme.
> Ich habe den regulären Ausdruck jedenfalls nicht geschrieben.
>
> Any ideas?
You switched your environment from ISO-8859-x to UTF-8.
Unfortunately tin does not yet convert it's configfiles when such a change
is made (as it doesn't note in which charset the file is saved it can't
convert it to the charset it's running in when that's a different one in the
next session).
You have to take care about such conversions yourself (but as charset
switches in the environment usualy happen very rarely (I've doe three
in the past ~28 years) that shouldn't hurt too much).
So either you convert your tinrc (and probably attributes and filter too)
via recode[3] or iconv[1] or you simply drop the bogus line from the tinrc[2]
and it will refill it with a sensible default in your current charset on the
next start.
Any changes - no matter which way you choose - should be done while tin is
_not_ running.
# all untested!
[1] mv ~/.tin/tinrc ~/.tin/tinrc.bak && \
iconv -f iso-8859-1 -t utf-8 -c -o ~/.tin/tinrc ~/.tin/tinrc.bak
[2] cp ~/.tin/tinrc ~/.tin/tinrc.bak && \
sed "/^strip_was_regex=/d" ~/.tin/tinrc
[3] cp ~/.tin/tinrc ~/.tin/tinrc.bak && \
recode iso-8859-1..utf-8 ~/.tin/tinrc
urs
--
"Only whimps use tape backup: _real_ men just upload their important stuff
on ftp, and let the rest of the world mirror it ;)" - Linus