Permalink
Browse files

r3407@asus: jeremy | 2005-12-09 10:39:00 -0800

 Apply [3256] to stable.  Generator copies files in binary mode.  Closes #3156.


git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/stable@3257 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 69e4c3c commit 1b4470c82fc85700107c4635cfb77d66e2830106 @jeremy jeremy committed Dec 9, 2005
Showing with 7 additions and 2 deletions.
  1. +5 −0 railties/CHANGELOG
  2. +2 −2 railties/lib/rails_generator/commands.rb
View
@@ -1,3 +1,8 @@
+*SVN*
+
+* Generator copies files in binary mode. #3156 [minimudboy@gmail.com]
+
+
*0.14.4 (RC5)* (December 7th, 2005)
* Add builtin/ to the gemspec. Closes #3047. [Nicholas Seckar, Sam Stephenson]
@@ -215,8 +215,8 @@ def file(relative_source, relative_destination, file_options = {}, &block)
# if block given so templaters may render the source file. If a
# shebang is requested, replace the existing shebang or insert a
# new one.
- File.open(destination, 'w') do |df|
- File.open(source) do |sf|
+ File.open(destination, 'wb') do |df|
+ File.open(source, 'rb') do |sf|
if block_given?
df.write(yield(sf))
else

0 comments on commit 1b4470c

Please sign in to comment.