weechat-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [bug #41115] Ruby plugin does not set encoding types on 2.


From: anonymous
Subject: [Weechat-dev] [bug #41115] Ruby plugin does not set encoding types on 2.x.x
Date: Mon, 06 Jan 2014 02:10:28 +0000
User-agent: Mozilla/5.0 (X11; CrOS armv7l 4731.101.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.67 Safari/537.36

URL:
  <http://savannah.nongnu.org/bugs/?41115>

                 Summary: Ruby plugin does not set encoding types on 2.x.x
                 Project: WeeChat
            Submitted by: None
            Submitted on: Mon 06 Jan 2014 02:10:27 AM UTC
                Category: script plugin
                Severity: 3 - Normal
              Item Group: other
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 0.4.2
                IRC nick: Alexis_Evo

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?41115>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]