Permalink
Browse files

It corresponds to ruby1.9.x.

  • Loading branch information...
1 parent 4f1845c commit edebbe09b912026a8a5b39e43f83ab9b5d46c570 kp committed Feb 26, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 util/image-gallery/image-gallery.rb
@@ -1,9 +1,15 @@
#!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
# image-gallery.rb $Revision: 2.0.1 $
#
# Copyright (c) 2005-2011 N.KASHIJUKU <n-kashi[at]whi.m-net.ne.jp>
# You can redistribute it and/or modify it under GPL2.
+if RUBY_VERSION >= '1.9.0'
+ Encoding::default_external = 'UTF-8'
+ $LOAD_PATH.push('./')
+end
+
if FileTest::symlink?( __FILE__ ) then
org_path = File::dirname( File::readlink( __FILE__ ) )
else

0 comments on commit edebbe0

Please sign in to comment.