Eggheads: eggdrop and latin1

Tothwolf tothwolf at concentric.net
Tue Jan 1 13:43:04 CST 1980


On Mon, 21 Feb 2000 erihe190 at student.liu.se wrote:
> On Sun, 20 Feb 2000, Tothwolf wrote:
> > On Sat, 19 Feb 2000 erihe190 at student.liu.se wrote:
> > 
> > > Hello
> > > 
> > > I've used eggdrop for a long time, but it's just recently i've noticed
> > > that it can't handle our fine swedish letters (åäö and ÅÄÖ) very well
> > > (you can't add a static channel containing a åäö, a dynamic one works
> > > fine until you restart the bot, all output of åäö from tclscripts
> > > (putlog privmsg etc) are garbled but comparisions etc work fine
> > > internally in tcl (tcl isnt the problem)) so I wonder if you guys know
> > > about this already or? After all, the rfc 1459 specifically mentions
> > > these letters... Anyone given latin1 and eggdrops any thought? Is there
> > > already a fix, maybe some #define somewhere?
> > 
> > What version of Tcl are you using? You need at least 8.1.x to be able to
> > handle those chars.

> Using TCL library: /usr/lib/tcl8.2
> 
> I don't think it's TCL that fucks up... For example: I just wrote a TCL
> script (running under eggdrop) that lets ircers check whats on tv. The
> script fetches a couple of HTML files from the web, parses the HTML and
> writes the essential stuff to disk. The files on disk look fine
> (åäö etc are preserved nicely). Another script lets one search the
> database (like !tvsearch stallone) for programs - that too works with
> åäö, it matches programs fine... Whats wrong then? All IRC output
> (and putlog etc) that has been processed by TCL garbles the åäö's. It
> seems like theres some strange translation TCL -> Eggdrop. Probably
> Eggdrop that fucks up. Also, channels with åäö is broken (you can .+chan
> #hallå and it works fine until you restarts the bot (and the eggie
> rereads the channel file), then the åäö's are translated and fucked up).

Ok..this helps some...Tcl parses the chanfile, but I think theres some
other code that may be stripping out the high bit chars too...Tcl 8.0 and
earlier will strip out the high bit chars on it's own, so that was the
first thing to check.

-Toth





More information about the Eggheads mailing list