Oren i implemented your patch and its still the same another thing i noticed 
is when i type hebrew it not only displays backwards on the screen but 
obviously sends some kond of control characters 
here is an example :
xchat 1.9.1 (kmail put the hebrew ok not the xchat)
<Fat|Slob> hello
<^Sparx^> hi
<Fat|Slob> ����
<Fat|Slob> ����
-----------------------------
xchat 1.8.9

<Fat|Slob> hello
<^Sparx^> hi
<Fat|Slob> PING LAG2621366679
<Fat|Slob> PING LAG2651917068

 any ideas ?
On Saturday 29 June 2002 05:14, Oren Held wrote:
> --Boundary_(ID_uKx2VqEOB90Q/wfpjde76g)
> Content-type: text/plain
> Content-transfer-encoding: 7BIT
>
> Hi,
>
> I've been digging some of xchat's source (mostly text handling stuff),
> and I must say it's coded in a weird way.. and 0% commented or
> something.
>
> Anyway, I've found that the reason for the hebrew code which stopped
> working in xchat v1.9.1 is just that the values of the hebrew characters
> were changed, for some reason. Here is a tiny and stupid patch, I just
> want to make sure that everyone has the same problem as I do (I just
> can't find a good reason for the character values to change; it doesn't
> seem related to gtk/utf stuff). Please let me know if I should submit it
> for the author.
>
> Note: This patch is only a temporary solution, It's quite stupid to use
> an xchat-specific-bidi code on a gtk2 program, when there's internal
> support in gtk2. But just for now..
>
> So please let me know.. thanks.
>
> - Oren
>
> --Boundary_(ID_uKx2VqEOB90Q/wfpjde76g)
> Content-type: text/plain; charset=ISO-8859-8; NAME=patch
> Content-transfer-encoding: 7BIT
> Content-disposition: attachment; filename=patch
>
> --- src/common/text.c Wed Jun  5 10:47:07 2002
> +++ src/common/text.c Sat Jun 29 05:07:04 2002
> @@ -53,7 +53,7 @@
>
>  static inline int isheb(const char ch)
>  {
> -     return (((unsigned char)ch) >= 0xE0  &&  ((unsigned char)ch) <= 0xFA);
> +     return (((unsigned char)ch) >= 144  &&  ((unsigned char)ch) <= 170);
>  }
>
>  static inline int iseng(const char ch)
>

      Barak Kaufman
Customer Support Manager
Oz-Tech Information Systems

================================================================To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to