bugWeeChat - Bugs: bug #41115, Ruby plugin does not set encoding...

 
 

bug #41115: Ruby plugin does not set encoding types on 2.x.x

Submitter:  None
Submitted:  Mon 06 Jan 2014 02:10:27 AM UTC
   
 
Category:  script plugin Severity:  3 - Normal
Item Group:  other Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Originator Email:  * -email is unavailable-
Open/Closed:  Closed Release:  * 0.4.2
IRC nick:  Alexis_Evo
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 06 Jan 2014 06:56:02 AM UTC, comment #1: 

I agree, the test was really bad ;)
It is now fixed, feedback is welcome if you still have problems.

Sebastien Helleu <flashcode>
Group administrator
Mon 06 Jan 2014 02:10:27 AM UTC, original submission:  

Found an annoying bug in the Ruby plugin, where the class Encoding is missing several constants (such as ::UTF_8), after hours of debugging I tracked it down to this line in /src/plugins/ruby/weechat-ruby.c.

"  if RUBY_VERSION.split('.')[1] == '9'n"

This check is supposed to include additional files if the version is 1.9.x or greater. Problem is, the current stable release of Ruby is 2.1.0. This type of check is pretty atrocious, for obvious reasons. It either needs to be rewritten, or support for 1.8.x should be dropped.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-09 flashcode Open/ClosedOpen Closed
    2014-01-06 flashcode StatusNone Fixed
        Assigned toNone flashcode

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code