Windows Tempfile Fix Plugin

December 8th, 2006

This is the initial release of the Windows Tempfile Fix plugin. This plugin sets out to make Tempfile binary safe on Windows.

Installation


$ piston import svn://svn.teksol.info/svn/rails/plugins/windows_tempfile_fix vendor\plugins\windows_tempfile_fix

Alternatively:


$ ruby script/plugin install svn://svn.teksol.info/svn/rails/plugins/windows_tempfile_fix

README

As I reported on my blog at http://blog.teksol.info/articles/2006/12/08/rmagick-and-jpeg-datastream-contains-no-image, the Windows version of Ruby will fail to load certain files when they are used through a Tempfile. This is because the Tempfile class does not open it’s files in binary mode.

This plugin is very conservative. It will not install itself if it does not detect the exact version it is supposed to be used against.

This plugin will only do it’s work if it the following expression evaluates to true: RUBY_PLATFORM "i386-mswin32" && RUBY_VERSION “1.8.4”

1 Response to “Windows Tempfile Fix Plugin”

  1. Jonathan Viney Says:

    I ran into this problem a while ago. I wrote a patch to fix it, not sure why it hasn’t been applied yet.

    http://dev.rubyonrails.org/ticket/6380

Leave a Reply

 

Search

A picture of me

I am François Beausoleil, a Ruby on Rails coder. During the day, I work on XLsuite. At night, I am interested many things. Read my biography

Tags

(3) (1) (0) (2) (1) (1) (2) (2) (1) (2) (1) (2) (1) (2) (1) (1) (1) (1) (2) (14) (1) (1) (1) (1) (2) (1) (1) (2) (0) (1) (2) (1) (3) (1) (1) (1) (1) (1) (1) (0) (3) (2) (1) (2) (2) (1) (3) (2) (8) (8) (9) (12) (1) (1) (3) (1) (1) (1) (1) (1) (1) (2) (2) (2) (1) (1) (4) (1) (3) (1) (2) (2) (2) (25) (2) (1) (1) (0) (1) (1) (1) (23) (25) (1) (1) (13) (1) (1) (2) (3) (1) (1) (4) (1) (2) (3) (0) (1) (7) (3) (1) (5) (5) (2) (2) (2) (4) (6) (7) (1) (0) (1) (1) (2) (2) (1) (4) (12) (2) (1) (2) (4) (1) (1) (1) (2) (8) (2) (3) (2) (2) (1) (3) (1) (1)

Links

Projects I work on

Categories

Archives