Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/standalone_graph/StandaloneModuleGraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@
module_format: module.module_format,
side: module.side,
cached_blob: None,
encoding: Encoding::Binary,
encoding: module.encoding,

Check failure on line 642 in src/standalone_graph/StandaloneModuleGraph.rs

View check run for this annotation

Claude / Claude Code Review

Latin1 encoding corrupts non-ASCII --banner/--footer in compiled executables

Honoring `module.encoding` activates the `Latin1 → create_static_external` path for JS modules, but `to_bytes()` tags JS as Latin1 purely by loader type with no ASCII check — and `postProcessJSChunk` concatenates `--banner`/`--footer`/hashbang verbatim as UTF-8. So `bun build --compile --footer 'console.log("résumé")'` now prints `résumé` (and non-ASCII identifiers can SyntaxError), whereas before this PR the hardcoded `Binary → clone_utf8` path decoded it correctly. Also, the PR description's
Comment thread
claude[bot] marked this conversation as resolved.
Resolved
wtf_string: BunString::empty(),
},
);
Expand Down
Loading