-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure files are read with the proper encoding #112
base: master
Are you sure you want to change the base?
Conversation
How can I review this pull request? I am not a Ruby specialist... can I pull the changes directly from the gem location and still get updates for new versions? What would be the git commands for this? The gem location in my environment is: Tks |
I am still getting corrupted images...
This is what I am using in my Assetfile: concatFilter = Rake::Pipeline::ConcatFilter Note: I am sure your changes are being picked up because I get an error if I purposely corrupt "file_wrapper.rb" |
Can you post an image that's getting corrupted (pre-corruption) here so I can try it on my machine? Thanks! On Apr 29, 2013, at 8:46 AM, ronaldocpontes [email protected] wrote:
|
If it helps here is the output from debugging the code: FILE: img/theme/iphone4s_black.png FILE: app.js
|
Strangely, the write method also seems to be on binary encoding... FILE: img/theme/iphone4s_black.png FILE: app.css
|
Hi Joe, Just curious if you had a chance to replicate the issue... Tks |
@ronaldocpontes yes, just tried it and it appears to be working for me. I'm going to try a slightly more detailed test, just in case. |
Just tried it with your exact setup. Ran the image through the same concat filter you posted above and it worked fine for me. My guess is it's a Windows issue. Does anyone else have a Windows setup they can use to try processing the above image on my fork? |
Hi Joe, I finally could fix the issue on Windows with following set of methods:
Could you test on your OS and update the pull request if you are happy with it? Thanks |
Note that I removed some encoding manipulation, so for a non-binary file: FILE: vendor/bootstrap.js Write method: |
This fixed the problems I had with copying binary files through the pipeline.