From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.188.165 with SMTP id gb5cs105168vdc; Sun, 24 Apr 2011 19:48:56 -0700 (PDT) Received: by 10.52.179.137 with SMTP id dg9mr5514766vdc.221.1303699736334; Sun, 24 Apr 2011 19:48:56 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id dx5si2209386vdc.31.2011.04.24.19.48.56; Sun, 24 Apr 2011 19:48:56 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-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-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id D02291858374; Sun, 24 Apr 2011 22:48:55 -0400 (EDT) Received: from mail-pv0-f178.google.com (mail-pv0-f178.google.com [74.125.83.178]) by rubyforge.org (Postfix) with ESMTP id 806561858374 for ; Sun, 24 Apr 2011 22:48:47 -0400 (EDT) Received: by pvg7 with SMTP id 7so1598679pvg.23 for ; Sun, 24 Apr 2011 19:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:organization:to:subject:date:user-agent :mime-version:content-type:content-transfer-encoding:message-id; bh=mGJZPT5UwjM0S84VccD/J50wW5nKYz81UbJP+v92Xfg=; b=Uoru7Zy2/XY8tP/jmOpcj1+QtSybpcw1vD+KHaK09JuICw2MOBzKdDRC0mboPjyC+U nR1eraO18LFAZ1VWOVe2Ay+Dr2jg4ozqmkYEnEFB9+GIsuNj+FYL3EW6gk7V3wIkVqY0 R1XwkanUqrVisB/zdiW5R9h7T/TXzmgynUMjk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:mime-version :content-type:content-transfer-encoding:message-id; b=tepzpVMmXaWfNEGM1OfR5V3C8m0gkkW+G1OutNs4bd2yiNiDyNwR1E6uXIkV6DSvUD 11oXCrNiYeLeIVmsEki7fUHS8VkVcV1M8Xh2I7on8lvdHlzdlSveAmU1ALYjjfUSAsr1 fchKOMVnTPBvlisGX2rfoHqhh9MN5gCIUPiOo= Received: by 10.68.7.66 with SMTP id h2mr2187342pba.513.1303698346423; Sun, 24 Apr 2011 19:25:46 -0700 (PDT) Received: from suj-panama.localnet (p210-159-196-197.sub.ne.jp [210.159.196.197]) by mx.google.com with ESMTPS id c3sm3584848pbg.68.2011.04.24.19.25.45 (version=SSLv3 cipher=OTHER); Sun, 24 Apr 2011 19:25:45 -0700 (PDT) From: Horacio Sanson Organization: piaotech To: sup-devel@rubyforge.org Date: Mon, 25 Apr 2011 11:25:04 +0900 User-Agent: KMail/1.13.5 (Linux/2.6.35-28-generic; KDE/4.5.1; x86_64; ; ) MIME-Version: 1.0 Message-Id: <201104251125.04792.hsanson@gmail.com> Subject: [sup-devel] turnsole cannot handle Japanese labels. 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org 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 `
' -- regards, Horacio Sanson _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel