Re: How to fix RE error?
Urs Janßen <[email protected]> Wed, 12 Mar 2008 19:32:27 +0100
| Newsgroups | gmane.network.tin.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Mar 12, 2008 at 04:59:23PM +0000, Chris G wrote: > I have moved from ISO-8859-1 to UTF-8 and now when I start tin it's > complaining about an invalid character in the following RE :- > > strip_was_regex=.\(([Ww]a[rs]|[Bb]y[l³]o):.*\)\s*$ unfortunately tin doesn't store (and/or convert) it's config-files in the current locale (that is on the TODO-list for ages) but assumes ISO-8859-X (which was ok in pre UTF-8 dates). as you are running now in a UTF-8 env, but the config file is still in ISO-8859-X you need to either convert the file to UTF-8 (cp ~/.tin/tinrc ~/.tin/tinrc.bak ; iconv -f ISO-8859-2 -t UTF-8 ~/.tin/tinrc > ~/.tin/tinrc.uf8 && mv ~/.tin/tinrc.uf8 ~/.tin/tinrc) or just remove the offending char/part. > Do I need to rebuild tin in the new environment or what? no > It's that '³' that's causing the problem I think, what should it > really be?... Am I seeing Polish in that RE, searching for Bylo > with a line through the l? yes 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