Bugs: russian letter 0x0451

Sergey Pavlov shrike at eggdrop.org.ru
Wed Jun 2 18:04:33 CST 2004


  We found a big trouble with 0x0451(0xB8 in cp1251) letter...

  The you passing this letter to module/proc, it's just eats yourself
  and corrupting letter before it.

cp1251 bot:
[03:54:59] <@shrike> !seen Лёха
[03:55:01] <@pestilence> shrike: шха? hmm... I'm trying to remember... maybe... I'm not sure... no. I don't remember шха.

possible it's bug in tcl.c, utf_converter:

byteptr = (char *) Tcl_GetByteArrayFromObj(objv[i], &len);

we tryed to replace this on Tcl_GetStringFromObj and trouble with
0x0451 was resolved, but... all string after [encoding ...] returned
on channel in UTF... so, it's not solve the problem.

any ideas ? ;)

Best regards,
 Sergey                          mailto:shrike at eggdrop.org.ru

More information about the Bugs mailing list