You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (Jira)" <ji...@apache.org> on 2025/10/20 15:27:00 UTC

[jira] [Created] (SLING-12969) The OpenSans fonts are corrupted by the build process

Eric Norman created SLING-12969:
-----------------------------------

             Summary: 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
             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)