Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Horacio Sanson <hsanson@gmail.com>
To: sup-devel@rubyforge.org
Subject: [sup-devel] turnsole cannot handle Japanese labels.
Date: Mon, 25 Apr 2011 11:25:04 +0900	[thread overview]
Message-ID: <201104251125.04792.hsanson@gmail.com> (raw)

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 `<main>'

-- 
regards,                                                                                                                                                                                                       
Horacio Sanson
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


             reply	other threads:[~2011-04-25  2:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-25  2:25 Horacio Sanson [this message]
2011-04-26  4:47 ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201104251125.04792.hsanson@gmail.com \
    --to=hsanson@gmail.com \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox