[
https://issues.apache.org/jira/browse/SLING-12969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Norman resolved SLING-12969.
---------------------------------
Resolution: Fixed
Merged PR at:
[{{19d119a}}|https://github.com/apache/sling-org-apache-sling-starter-content/commit/19d119a27caabe83bf2afa81166a6301f5243ed7]
> The OpenSans fonts are corrupted by the build process
> -----------------------------------------------------
>
> Key: SLING-12969
> URL: https://issues.apache.org/jira/browse/SLING-12969
> Project: Sling
> Issue Type: Bug
> Reporter: Eric Norman
> Assignee: Eric Norman
> Priority: Major
> Fix For: Starter Content 2.0.2
>
>
> Gulp can corrupt WOFF files, particularly when using Gulp v5 or higher, due
> to changes in how Gulp handles file encoding by default. Specifically, Gulp
> v5 attempts to encode binary files like WOFF fonts as UTF-8, which can lead
> to corruption if the binary data contains sequences that are not valid UTF-8.
> These invalid sequences are then converted to the Unicode replacement
> character (U+FFFD), which corrupts the file.
>
> To prevent this corruption, the {{encoding: false}} option must be explicitly
> set when using {{gulp.src()}} for binary files. This ensures Gulp treats the
> files as raw buffers and avoids any unintended encoding.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)