From ab046aae8b5912fe2b844207944159ac7c463589 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Tue, 17 May 2016 10:48:07 +0200 Subject: better encoding solution --- dudle.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dudle.rb') diff --git a/dudle.rb b/dudle.rb index 6fe30d4..31f9c7e 100644 --- a/dudle.rb +++ b/dudle.rb @@ -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 -- cgit v1.2.3