From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.169.69 with SMTP id ac5csp16408vdc; Thu, 15 Aug 2013 09:27:28 -0700 (PDT) X-Received: by 10.60.121.103 with SMTP id lj7mr14958697oeb.25.1376584048092; Thu, 15 Aug 2013 09:27:28 -0700 (PDT) Return-Path: Received: from rubyforge.org ([50.56.192.79]) by mx.google.com with ESMTP id g7si94563oez.12.2013.08.15.09.27.27 for ; Thu, 15 Aug 2013 09:27:27 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id A58CA2E1FB; Thu, 15 Aug 2013 16:27:28 +0000 (UTC) X-Greylist: delayed 328 seconds by postgrey-1.31 at rubyforge; Thu, 15 Aug 2013 16:27:18 UTC Received: from sam.mediasupervision.de (sam.mediasupervision.de [80.152.3.104]) by rubyforge.org (Postfix) with ESMTP id 970EE2E1F0 for ; Thu, 15 Aug 2013 16:27:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sam.mediasupervision.de (Postfix) with ESMTP id 64D253A00C5 for ; Thu, 15 Aug 2013 18:21:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at sam.mediasupervision.de Received: from sam.mediasupervision.de ([127.0.0.1]) by localhost (sam.mediasupervision.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XmGVbt5tqSQV for ; Thu, 15 Aug 2013 18:21:43 +0200 (CEST) Received: by sam.mediasupervision.de (Postfix, from userid 1000) id 42E5D3A00C6; Thu, 15 Aug 2013 18:21:43 +0200 (CEST) To: sup-devel From: Gregor Hoffleit Date: Thu, 15 Aug 2013 18:21:43 +0200 Message-Id: <1376582732-sup-7192@sam.mediasupervision.de> User-Agent: Sup/git Subject: [sup-devel] sup 0.14: Encoding::UndefinedConversionError from thread: load threads for thread-index-mode X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion 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-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org Sup 0.14 fails for me just after the start with the following exception: --- Encoding::UndefinedConversionError from thread: load threads for thread-index-mode "\xE2" from ASCII-8BIT to UTF-8 /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/util.rb:259:in `width' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/util.rb:259:in `display_length' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/scroll_mode.rb:226:in `block in draw_line_from_array' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/scroll_mode.rb:224:in `each' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/scroll_mode.rb:224:in `each_with_index' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/scroll_mode.rb:224:in `draw_line_from_array' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/scroll_mode.rb:199:in `draw_line' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/line_cursor_mode.rb:52:in `draw_line' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/scroll_mode.rb:46:in `block in draw' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/scroll_mode.rb:46:in `each' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/scroll_mode.rb:46:in `draw' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/line_cursor_mode.rb:37:in `draw' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/buffer.rb:118:in `draw' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/buffer.rb:102:in `redraw' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/buffer.rb:335:in `draw_screen' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/buffer.rb:766:in `clear' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/util.rb:639:in `method_missing' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/thread_index_mode.rb:667:in `load_n_threads' (eval):12:in `load_n_threads' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/modes/thread_index_mode.rb:638:in `block in load_n_threads_background' /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup.rb:85:in `block in reporting_thread' I noticed that this exception looks similar to a report from 2011: * Horacio Sanson's message of Mo Apr 25 04:25:04 +0200 2011: > Any attempt to add a label with Japanese characters crashes the application. > Seems this is a common problem to all Ruby 1.9 applications. I can see Rails > had or has a lot of problems with this: > > http://yehudakatz.com/2010/05/05/ruby-1-9-encodings-a-primer-and-the-solution-for-rails/ > > https://rails.lighthouseapp.com/projects/8994/tickets/4683-ascii-8bit-and-utf-8-in-hell > > > The backtrace I get follows: > > /var/lib/gems/1.9.1/gems/console-0.3/lib/console/string.rb:27:in > `display_width': "\xE3" from ASCII-8BIT to UTF-8 > (Encoding::UndefinedConversionError) > from /var/lib/gems/1.9.1/gems/console-0.3/lib/console/string.rb:27:in > `display_width' > from /home/ryujin/Apps/turnsole/lib/turnsole/textfield.rb:129:in > `handle_input' > from /home/ryujin/Apps/turnsole/lib/turnsole/input.rb:108:in `ask' > from /home/ryujin/Apps/turnsole/lib/turnsole/input.rb:141:in > `ask_many_with_completions' > from /home/ryujin/Apps/turnsole/lib/turnsole/input.rb:198:in > `ask_for_labels' > from /home/ryujin/Apps/turnsole/lib/turnsole/modes/thread-index- > mode.rb:585:in `block in edit_labels' > from /home/ryujin/Apps/turnsole/lib/turnsole/input.rb:42:in `asking' > from /home/ryujin/Apps/turnsole/lib/turnsole/modes/thread-index- > mode.rb:584:in `edit_labels' > from /home/ryujin/Apps/turnsole/lib/turnsole/input.rb:92:in `handle' > from /home/ryujin/Apps/turnsole/lib/turnsole/ui.rb:73:in `step' > from bin/turnsole:134:in `
' to which William responded: > Thanks for the bug report. This is a bit tricky. The problem is > actually that ncurses is giving me the characters one byte at a time. > I'll see what I can do to fix this. Do you need any more information to debug this problem? I'm using Ruby 1.9.3p194 on Debian 7.1. I installed Sup 0.14 with "gem1.9.1 install sup", which pulled in the following dependencies: # gem1.9.1 list --local *** LOCAL GEMS *** chronic (0.9.1) highline (1.6.19) locale (2.0.8) lockfile (2.1.0) mime-types (1.24) ncursesw-sup (1.3.1.3) rmail (1.0.0) sup (0.14.0) trollop (2.0) unicode (0.4.4) xapian-ruby (1.2.15.1) Regards, Gregor Hoffleit _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel