This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

High bit characters in Tcl & eggdrop

Old posts that have not been replied to for several years.
S
Sendron

Post by Sendron »

Hi there!

Could someone pls help me out here? My tcl scripts are giving me a hard time
cause one of my channel's now include the letter "ø" twice (o with slash).
They doesnt work at all. Im running redhat 7.1, tcl 8.3 and eggdrop1.6.6

Is there any reciept to patch or avoid this trouble? I have tried with ascii code, but that just messes things up even more...

:sad: Neeeeeed Heeeelp!!!
User avatar
stere0
Halfop
Posts: 47
Joined: Sun Sep 23, 2001 8:00 pm
Location: Brazil

Post by stere0 »

I have the same problem, and there is a user from this forum(i think ´stdragon´) that had said a patch for this, but exactly with this I don´t obtained to make to function. But I find that it did not know to apply patch correctly. Perhaps it can in explaining them again better..


[]s
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

The patch has been incorporated into eggdrop 1.6 (cvs version).

I think 1.6.7 will be released in a few days, so it might be easiest to just wait for that. Or you can download the cvs version. You can get that at ftp://ftp.eggheads.org/pub/eggdrop/sour ... ent.tar.gz

If you want to apply the patch to eggdrop 1.6.6, download the patch at http://home.dal.net/stdragon/eggdrop/ut ... ion2.patch

Then move it to the eggdrop directory and type, patch -p1 < utf_solution2.patch
S
Sendron

Post by Sendron »

Hmmz.. I downloaded the 1.6-current eggdrop, but it didnt seem to help much either. I got a little diffrent errors this time. But stil not anything i can fix myself. Hope they will fix this before they release the 1.6.7 eggdrop. Cause i know this has been a problem for users quite a while.

About that patch you are reffering to; in what stage of the compiling prosses of the eggdrop is that patch supposed to be run? Before,after,recompiling? Pls be more spesific, tried it once but only got a hand full of Hunk-errors.

:wink: Thx for the help so far guys!!
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

If you downloaded the 1.6-current.tar.gz from the eggheads ftp, you don't need to install the patch yourself, as it has allready been included in the code.

If you want to install the patch yourself, then you should:
download eggdrop1.6.6.tar.gz
unpack it
cd eggdrop1.6
download patch to this dir
patch -p1 < utf_solution2.patch
Now you can configure and make as normal

If you still get problems from this, try to post a detailed example of the problem occuring. If the problem is different to the original one, post a detail report on the first problem as well. This will help stdragon (and the other coders) to locate where the problems still exist.
S
Sendron

Post by Sendron »

I know that i dont have to patch the 1.6-current.tar.gz, so i didnt try to patch it either, but it still didnt work.

Im going to try out this patch and eggdrop1.6.6 now. Will post my errors, if some, after that. Thx so far.

:wink:
S
Sendron

Post by Sendron »

Well at the time i have a hard time accessing your patch at : http://home.dal.net/stdragon/eggdrop/ut ... ion2.patch

Is this the right adresss?
S
Sendron

Post by Sendron »

Oki.. here goes...
I unrared the eggdrop1.6.6, downloaded the patch to the same dir. Runned the patch, and this is the result:

patch -p1 < utf_solution2.patch

patching file src/botmsg.c
Hunk #1 FAILED at 55.
1 out of 1 hunk FAILED -- saving rejects to file src/botmsg.c.rej
missing header for unified diff at line 15 of patch
can't find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
| for (i = 0; i < dcc_total; i++)
--------------------------
File to patch:


Any ideas?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This sounds like you are patching from the incorect DIR.

Download eggdrop1.6.6.tar.gz
tar -zxf eggdrop1.6.6.tar.gz
cd eggdrop1.6.6
download patch
patch -p1 < patch.filename
compile and make as normal

It sounds liek you didn't have the patch file in the right dir.
S
Sendron

Post by Sendron »

Yes, its in the right dir, check it out:

http://www.project-starlight.com/shell.gif

More clues?
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Maybe you have an incompatible version of patch. It was created with:

diff - GNU diffutils version 2.7

And it applies correctly with my:

patch 2.5.4

Try checking the manual page for patch ("man patch") and look for an argument you can pass to make it compatible with gnu patch, or try a context patch or something.
S
Sendron

Post by Sendron »

Hi again. Im using the same version as you.

[sendron@localhost sendron]$ patch --version
patch 2.5.4
Copyright 1984-1988 Larry Wall
Copyright 1989-1999 Free Software Foundation, Inc.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Heh, I just tried to apply the patch to 1.6.6 and you're right, it doesn't work.

But I downloaded eggdrop1.6-current.tar.gz and the patch is already applied in there, so that should be all you need.

What errors did you run into with eggdrop1.6-current?
S
Sendron

Post by Sendron »

Well.. i have tried to run several htmlstats tcl-scripts, but one of my #channels is contains two "ø"'s in the name, and this kills the bot compleatly. Have tried the 1.6current version as well, but with no luck.. its a little sad, cause when i finaly got to buy myself a .nu domain, that supports "ø" (or other high bit characters), i still cant get irc stats for my webpage... :-/
S
Sendron

Post by Sendron »

I tried one more time, but the same result.. the eggdrop just tells me:

<WebStats> [18:42] TCL error [cs_update]: illegal channel:

And it cant parse the "ø" characters..
(This is just one of many scripts i have tried. This is the Chatstats 2.11 by Baerchen btw..

Locked