Skip to content

Commit

Permalink
Revert "remove workaround for 1.9.2"
Browse files Browse the repository at this point in the history
This reverts commit 0e3e9d0.
  • Loading branch information
hsbt committed Jul 20, 2013
1 parent 0e3e9d0 commit 758b77f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tdiary/compatible.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ def taint

# for Ruby 1.9.X

# preload transcodes outside $SAFE=4 environment, that is a workaround
# for the possible SecurityError. see the following uri for the detail.
# http://redmine.ruby-lang.org/issues/5279
%w(utf-16be euc-jp iso-2022-jp Shift_JIS).each do |enc|
"\uFEFF".encode(enc) rescue nil
end

# Auto convert ASCII_8BIT pstore data (created by Ruby-1.8) to UTF-8.
require 'pstore'
class PStoreRuby18Exception < Exception; end
Expand Down

0 comments on commit 758b77f

Please sign in to comment.