sunaku/wmiirc

Opening a terminal (or else) in a client with non ascii label fails

Closed this issue · 2 comments

Apply this patch on lib/wmiirc/system.rb:

+++ system.rb.new 2012-11-14 13:39:42.876780962 +0100
@@ -7,7 +7,7 @@
def launch *args
if label = curr_client.label.read rescue nil
label.split(/[\s[]{}()<>"':]+/).reverse_each do |word|

  •    if File.exist? path = File.expand_path(word)
    
  •    if File.exist? path = File.expand_path(word.force_encoding("UTF-8"))
       path = File.dirname(path) unless File.directory? path
       Dir.chdir(path){ launch! *args }
       return
    

Damn: Pasting did not work correctly
Patch can be found here: https://gist.github.com/4072085

Patch applied, thanks.