Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 May 2010 17:41:13 GMT
From:      Tilc <beigas@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/146382: scrollz 2.[01] doesnt allow usage of non-latin chars in messages
Message-ID:  <201005071741.o47HfDYK084059@www.freebsd.org>
Resent-Message-ID: <201005071750.o47Ho4LJ013254@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         146382
>Category:       misc
>Synopsis:       scrollz 2.[01] doesnt allow usage of non-latin chars in messages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 07 17:50:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Tilc
>Release:        8.0-RELEASE
>Organization:
none
>Environment:
FreeBSD kaza.velti.lv 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Mon Apr 26 19:43:51 UTC 2010     root@kaza.velti.lv:/usr/src/sys/i386/compile/KAZA  i386

>Description:
scrollz 2.0 and 2.1 doesnt allow to input non latin characters in iso8859-13 encoding and dont even display them

20:25|CTCP VERSION reply from Tilc: ircII 20060504+ScrollZ 1.9.98.1
      (04.05.2006)+Cdcc v1.8+OperMods v1.0 by acidflash - Almost there

20:23|<Tilc> &#326;&#275;&#326;&#275;kkee&#275;&#275;
20:23|<Tilc> do yo see &#326; and &#275; ?
20:23|<Tilc> oops youre not on chan

and:

20:28|CTCP VERSION reply from beigas: ircII 20091223+ScrollZ 2.1
      (23.12.2009)+Cdcc v1.8+OperMods v1.0 by acidflash - Get ready to fly

20:24|<Tilc> kkeegg[[0m
20:24|<Tilc> do yo see  and  ?
20:24|<Tilc> oops youre not on chan

>How-To-Repeat:
try to type or read any non latin char in chat message (didnt tried in other codepage than iso8859-13)
>Fix:
http://scrollz.sourcearchive.com/documentation/2.0/input_8c-source.html

for input maybe this:

/**************************** PATCHED by Flier ******************************/
                                static time_t lastkeypress = 0;

                                if (lastkeypress == 0) lastkeypress = time(NULL);
                                else {
                                    time_t timenow = time(NULL);

                                    if (timenow - lastkeypress > 2) {
                                        /* Probably bad input encoding, ignore bad bytes! */
                                        say("Wrong input sequence, resetting");
                                        input_pos = 0;
                                        input_buffer[0] = '\0';
                                        return;
                                    }
                                }

for output dont know

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005071741.o47HfDYK084059>