Skip to content

Commit

Permalink
remove workaround for 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jul 19, 2013
1 parent 0a06c4e commit 0e3e9d0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tdiary/compatible.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ 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 0e3e9d0

Please sign in to comment.