-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Gulp v5 corrupt font files #2797
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
Comments
Same issue with images and fonts |
Had a same issue. Fixed it like this (
|
Thank you @KikelDmitry , confirmed working with your fix |
Dupe of other open tickets, closing. Docs in the docs folder and release blog post have this but website needs to be updated still. |
The website is updated now. |
1 task
the-djmaze
pushed a commit
to the-djmaze/snappymail
that referenced
this issue
Aug 12, 2024
amercader
added a commit
to ckan/ckan
that referenced
this issue
Feb 12, 2025
There was a change in gulp 5 that defaulted the stream encoding to UTF8. To preserve binary files like fonts you need to pass `{encoding: false}` Reference: gulpjs/gulp#2797
wardi
pushed a commit
to ckan/ckan
that referenced
this issue
Mar 19, 2025
There was a change in gulp 5 that defaulted the stream encoding to UTF8. To preserve binary files like fonts you need to pass `{encoding: false}` Reference: gulpjs/gulp#2797
amercader
added a commit
to ckan/ckan
that referenced
this issue
Apr 24, 2025
There was a change in gulp 5 that defaulted the stream encoding to UTF8. To preserve binary files like fonts you need to pass `{encoding: false}` Reference: gulpjs/gulp#2797
duttonw
pushed a commit
to qld-gov-au/ckan
that referenced
this issue
May 14, 2025
There was a change in gulp 5 that defaulted the stream encoding to UTF8. To preserve binary files like fonts you need to pass `{encoding: false}` Reference: gulpjs/gulp#2797
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What were you expecting to happen?
Gulp copies the binary files verbatim
What actually happened?
Contents of the files were modified with unicode placeholders.
Please give us a sample of your gulpfile
Terminal output / screenshots
Please provide the following information:
node -v
): v20.12.1npm -v
): 10.5.2gulp -v
): CLI version: 3.0.0Local version: 5.0.0
Additional information
Switching back to gulp 4.0.2 fixes the issue (files are binary identical).
Switching back to gulp 5.0.0 reproduces the issue.
The source .woff file started with:
With gulp v5, the bin copy of the .woff file starts with:
(there are many more instances of that Unicode escape sequence in the woff file)
Troubleshooting
Tried specifying
{ encoding: "binary" }
in thegulp.src
call but that just changes bytes in different ways. (this variation also works as expected in gulp v4 but not in v5)Below is the output from gulp v5:
The text was updated successfully, but these errors were encountered: