diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2016-05-16 20:07:55 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2016-05-16 20:07:55 +0200 |
commit | 8be874570d23fb60d9080dbfecae9002d8537a51 (patch) | |
tree | f4aad8137e47440909c4ebf7ddad71ec941a41f5 | |
parent | a838fd9856244f65075c22aee3e3659fc09df86a (diff) |
bugfix encoding for dirnames with specialchars
-rw-r--r-- | dudle.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,7 +33,7 @@ require "locale" if File.exists?("data.yaml") && !File.stat("data.yaml").directory? $is_poll = true - GetText.bindtextdomain("dudle", :path => Dir.pwd + "/../locale/") + GetText.bindtextdomain("dudle", :path => Dir.pwd.force_encoding("UTF-8") + "/../locale/") else $is_poll = false GetText.bindtextdomain("dudle", :path => Dir.pwd + "/locale/") @@ -126,7 +126,7 @@ class Dudle @basedir = ".." inittabs @table = YAML::load(VCS.cat(self.revision, "data.yaml")) - @urlsuffix = File.basename(File.expand_path(".")) + @urlsuffix = File.basename(File.expand_path(".")).force_encoding("UTF-8") @title = @table.name |