From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.87.14 with SMTP id k14cs564817agb; Sat, 19 Dec 2009 10:41:19 -0800 (PST) Received: by 10.224.7.130 with SMTP id d2mr3038774qad.217.1261248079342; Sat, 19 Dec 2009 10:41:19 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 9si6838367qyk.95.2009.12.19.10.41.19; Sat, 19 Dec 2009 10:41:19 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 236CF1D78869; Sat, 19 Dec 2009 13:41:19 -0500 (EST) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id 65B9018582C2 for ; Sat, 19 Dec 2009 13:34:22 -0500 (EST) Received: from w by entry.masanjin.net with local (Exim 4.69) (envelope-from ) id 1NM48E-0000Tf-2q for sup-talk@rubyforge.org; Sat, 19 Dec 2009 10:34:22 -0800 From: William Morgan To: sup-talk In-reply-to: <5a5b14cf0912180737n600fc2acx30fa14028d4a7662@mail.gmail.com> References: <80055d7c0911061922w64ef7cb0qf0c7bed008cc728c@mail.gmail.com> <5a5b14cf0912180737n600fc2acx30fa14028d4a7662@mail.gmail.com> Date: Sat, 19 Dec 2009 10:34:22 -0800 Message-Id: <1261246544-sup-7566@masanjin.net> User-Agent: Sup/git Subject: Re: [sup-talk] Ruby 1.9: encodings X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Reformatted excerpts from Gaute Hope's message of 2009-12-18: > I just tried.. im getting the same, afraid im not skilled enough to > figure out what is wrong thou.. Do the errors still occur if you apply this patch? diff --git a/lib/sup/util.rb b/lib/sup/util.rb index f99e1c1..92aaff4 100644 --- a/lib/sup/util.rb +++ b/lib/sup/util.rb @@ -176,13 +176,7 @@ end class String ## nasty multibyte hack for ruby 1.8. if it's utf-8, split into chars using ## the utf8 regex and count those. otherwise, use the byte length. - def display_length - if $encoding == "UTF-8" || $encoding == "utf8" - scan(/./u).size - else - size - end - end + def display_length; length end def camel_to_hyphy self.gsub(/([a-z])([A-Z0-9])/, '\1-\2').downcase -- William _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk