bugWeeChat - Bugs: bug #38734, Weechat ignores/breaks messages...

 
 

bug #38734: Weechat ignores/breaks messages that are too long and are written in Korean language

Submitter:  Kim Gunwoo <wind0204>
Submitted:  Sun 14 Apr 2013 06:13:26 AM UTC
   
 
Category:  irc plugin Severity:  3 - Normal
Item Group:  irc protocol Status:  Wont Fix
Privacy:  Public Assigned to:  flashcode
Originator Name:  Open/Closed:  Closed
Release:  * 0.4.0 IRC nick:  Dewr
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 17 Apr 2013 06:09:51 AM UTC, comment #2: 

It's weird

A XChat user said that he see the last UTF-8 invalid character normally. but in weechat 0.4.0, I see the last character as '?'.

I submitted an issue to the issue tracker of the relay bot ( https://github.com/changwoo/irc-relay/issues/3 )

Kim Gunwoo <wind0204>
Sun 14 Apr 2013 07:30:55 AM UTC, comment #1: 

Problem happens because the message is cut by another client (to fit in the IRC 512 bytes limit).

Some clients like irssi cuts the message in the middle of an UTF-8 char, and then the message becomes UTF-8 invalid.

When the message is not UTF-8 valid, WeeChat will try to decode it using "decode" charset, which is by default "iso-8859-1".
And after such decode, all UTF-8 chars are lost.

One solution is then to remove the "iso-8859-1" default decode charset if you don't use it (or set it only on buffers where you really need it):


/set charset.default.decode ""


Sebastien Helleu <flashcode>
Group administrator
Sun 14 Apr 2013 06:13:26 AM UTC, original submission:  

Weechat 0.4.0 or older version of Weechat ignores or breaks messages that are too long and are written in Korean language. but you can see the original message well in the "/server raw" buffer, a last character is broken though.



 *copied from irc_raw :
144448  znc_ozinger --> | :sangu!sangu_hc@*8nr.f8l.41dh42.IP PRIVMSG #gnome :조기숙 교수를 필두로 한 어떤 이들은 “참여정부는 심판당한 적이
                        | 없으며 2007년 대선은 정동영의 패배였다”, “노무현을 내세운 선거는 언제나 승리했고 그렇지 못한 선거는 패배했다”,
                        | “문재인 후보의 ‘좌클릭’이 패배를 낳았다”는 식의 거의 대체역사소설이나 평행우주에서나 가능할 법 같은 가설을 통계나
                        | 과학의 이름으로 주장하기
144448   znc_hanirc --> | :♣!~GNOMERELA@121.168.63.178 PRIVMSG #gnome :<sangu>  조기숙 교수를 필두로 한 어떤 이들은 “참여정부는 심판당한 적이
                        | 없으며 2007년 대선은 정동영의 패배였다”, “노무현을 내세운 선거는 언제나 승리했고 그렇지 못한 선거는 패배했다”,
                        | “문재인 후보의 ‘좌클릭’이 패배를 낳았다”는 식의 거의 대체역사소설이나 평행우주에서나 가능할 법 같은 가설을 통계나
                        | 과학의 이름으로 주장하?
♣ is a relay bot that relays the message from Ozinger server to Hanirc server


 *copied from irc/znc_hanirc #gnome :
144448             +♣ | <뒷북요정>  [링크 제목] 민주통합당 대선 평가, 그 이후는? - 미디어스
144448             ⣠| <sangu>  조기ì êµì를    
144449             +♣ | <sangu>  도 했다.  



 *copied from irc/znc_ozinger #gnome :
144448  뒷북요정 | [링크 제목] 민주통합당 대선 평가, 그 이후는? - 미디어스                                                      │ d3m3_irctalk
144448     sangu | 조기숙 교수를 필두로 한 어떤 이들은 “참여정부는 심판당한 적이 없으며 2007년 대선은 정동영의 패배였다”,
                 | “노무현을 내세운 선거는 언제나 승리했고 그렇지 못한 선거는 패배했다”, “문재인 후보의 ‘좌클릭’이 패배를
                 | 낳았다”는 식의 거의 대체역사소설이나 평행우주에서나 가능할 법 같은 가설을 통계나 과학의 이름으로 주장하기
144449     sangu | 도 했다.

Kim Gunwoo <wind0204>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #27865:  message_to_produce_bug_in_weechat.utf8.txt added by wind0204 (466B - text/plain - I attached the message that produces the bug)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by wind0204 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-05-23 flashcode Open/ClosedOpen Closed
    2013-04-14 flashcode StatusNone Wont Fix
        Assigned toNone flashcode
    2013-04-14 wind0204 Attached File- Added message_to_produce_bug_in_weechat.utf8.txt, #27865

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code