diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2016-05-17 10:48:07 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2016-05-17 10:48:07 +0200 |
commit | ab046aae8b5912fe2b844207944159ac7c463589 (patch) | |
tree | 2d4adca051d9f345df5fadfbce7c125b65caa4c1 /dudle.rb | |
parent | c215acf21bde3a769c3eba600d4c9f1226c83bef (diff) |
better encoding solution
Diffstat (limited to 'dudle.rb')
-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.force_encoding("UTF-8") + "/../locale/") + GetText.bindtextdomain("dudle", :path => Dir.pwd + "/../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(".")).force_encoding("UTF-8") + @urlsuffix = File.basename(File.expand_path(".")) @title = @table.name |