Hello, I''ve never applied a patch before and would like to know how to do it. How do I apply the " erb_encoding_workaround.patch" from : https://rails.lighthouseapp.com/projects/8994/tickets/2188-i18n-fails-with-multibyte-strings-in-ruby-19-similar-to-2038 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Mlle wrote:> Hello, > I''ve never applied a patch before and would like to know how to do it. > > How do I apply the " erb_encoding_workaround.patch" from : > > https://rails.lighthouseapp.com/projects/8994/tickets/2188-i18n-fails-with-multibyte-strings-in-ruby-19-similar-to-2038See the man page for the patch command: http://linux.die.net/man/1/patch git am might also be useful. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Mlle wrote:> Hello, > I''ve never applied a patch before and would like to know how to do it. > > How do I apply the " erb_encoding_workaround.patch" from : > > https://rails.lighthouseapp.com/projects/8994/tickets/2188-i18n-fails-with-multibyte-strings-in-ruby-19-similar-to-2038http://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/ -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I put the patch file in my project''s main directory and then tried to apply it. I got these errors: e:~/Work/samples$ git apply erb_encoding_workaround.patch\ erb_encoding_workaround.patch :117: trailing whitespace. error: actionpack/lib/action_view/template_handlers/erb.rb: No such file or directory error: actionpack/test/fixtures/test/utf8.html.erb: No such file or directory error: actionpack/test/template/render_test.rb: No such file or directory error: actionpack/lib/action_view/template_handlers/erb.rb: No such file or directory error: actionpack/lib/action_view/renderable.rb: No such file or directory error: actionpack/lib/action_view/template_handlers/erb.rb: No such file or directory error: actionpack/test/fixtures/test/utf8.html.erb: No such file or directory error: actionpack/test/template/render_test.rb: No such file or directory error: activesupport/lib/active_support/core_ext/string/multibyte.rb: No such file or directory error: activesupport/test/core_ext/string_ext_test.rb: No such file or directory Did I put the patch in the right place in order to apply it? Why would it get all those errors? Thanks! On May 6, 3:30 pm, Robert Walker <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Mlle wrote: > > Hello, > > I''ve never applied a patch before and would like to know how to do it. > > > How do I apply the " erb_encoding_workaround.patch" from : > > >https://rails.lighthouseapp.com/projects/8994/tickets/2188-i18n-fails... > > http://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/ > -- > Posted viahttp://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Mlle wrote:> I put the patch file in my project''s main directory and then tried to > apply it. > > I got these errors: > > e:~/Work/samples$ git apply erb_encoding_workaround.patch\ > erb_encoding_workaround.patch :117: trailing whitespace. > > error: actionpack/lib/action_view/template_handlers/erb.rb: No such > file or directory > error: actionpack/test/fixtures/test/utf8.html.erb: No such file or > directory > error: actionpack/test/template/render_test.rb: No such file or > directory > error: actionpack/lib/action_view/template_handlers/erb.rb: No such > file or directory > error: actionpack/lib/action_view/renderable.rb: No such file or > directory > error: actionpack/lib/action_view/template_handlers/erb.rb: No such > file or directory > error: actionpack/test/fixtures/test/utf8.html.erb: No such file or > directory > error: actionpack/test/template/render_test.rb: No such file or > directory > error: activesupport/lib/active_support/core_ext/string/multibyte.rb: > No such file or directory > error: activesupport/test/core_ext/string_ext_test.rb: No such file or > directory > > > Did I put the patch in the right place in order to apply it? Why > would it get all those errors?Because the patch is for the Rails library itself, and you''re apparently trying to apply it to your project files. As a result, it''s not seeing the files it wants to patch, so of course it complains.> > Thanks!Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.