From c5d7a021c228b7e2a5d2f8c2d08af1fd2734d1d4 Mon Sep 17 00:00:00 2001 From: moguno Date: Tue, 6 May 2014 08:45:15 +0900 Subject: [PATCH] =?UTF-8?q?Windows=E3=81=A7=E6=97=A5=E6=9C=AC=E8=AA=9E?= =?UTF-8?q?=E3=82=92=E5=90=AB=E3=82=80=E3=83=91=E3=82=B9=E3=81=A7ruby=20mi?= =?UTF-8?q?kutter.rb=E3=81=99=E3=82=8B=E3=81=A8=E8=90=BD=E3=81=A1=E3=82=8B?= =?UTF-8?q?(ruby=20./mikutter.rb=E3=81=A8=E3=81=8B=E3=81=AFOK)=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=81=B8=E3=81=AE=E5=AF=BE=E5=BF=9C=E3=80=82=20File.d?= =?UTF-8?q?irname=E3=81=AE=E3=83=90=E3=82=B0=E3=81=AE=E6=A8=A1=E6=A7=98?= =?UTF-8?q?=E3=80=82Ruby2.2.0=E3=81=A7=E4=BF=AE=E6=AD=A3=E4=BA=88=E5=AE=9A?= =?UTF-8?q?=E3=80=82=20https://bugs.ruby-lang.org/issues/8789?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mikutter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mikutter.rb b/mikutter.rb index 3adcb90..d17435c 100755 --- a/mikutter.rb +++ b/mikutter.rb @@ -11,10 +11,10 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY You should have received a copy of the GNU General Public License along with this program. If not, see . =end -mikutter_directory = File.expand_path(File.dirname(__FILE__)) +mikutter_directory = File.expand_path(File.dirname(__FILE__).force_encoding(Encoding.default_external)) begin - ENV['BUNDLE_GEMFILE'] = File.expand_path(File.join(File.dirname($0), "Gemfile")) + ENV['BUNDLE_GEMFILE'] = File.join(mikutter_directory, "Gemfile") require 'bundler/setup' rescue LoadError, SystemExit # bundlerがないか、依存関係の解決に失敗した場合 -- 1.9.2