Skip to content

Use UTF-8 decoding for java source files#1590

Merged
gbrail merged 1 commit intomozilla:masterfrom
tonygermano:unicode-source-files
Aug 30, 2024
Merged

Use UTF-8 decoding for java source files#1590
gbrail merged 1 commit intomozilla:masterfrom
tonygermano:unicode-source-files

Conversation

@tonygermano
Copy link
Contributor

This is the default on Linux and Mac, but not on Windows. This should standardize across platforms. I believe this will also allow us to revert #1588.

Without ensuring that UTF-8 encoding is always expected, any characters in the java source with a code point above 127 will be read incorrectly by Windows. While we could escape all of those characters, one must remember to do it, and escaping those characters harms readability.

This is the default on Linux and Mac, but not on Windows. This should standardize across platforms.
@gbrail
Copy link
Collaborator

gbrail commented Aug 30, 2024

Yes, I think this makes sense and is a better way to ensure our Windows builds work. Thanks!

@gbrail gbrail merged commit 650ec29 into mozilla:master Aug 30, 2024
@tonygermano tonygermano deleted the unicode-source-files branch August 30, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants