Skip to content
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

core: Strip BOM in URLLoader text data #17513

Merged
merged 5 commits into from
Sep 15, 2024

Conversation

Mesteery
Copy link
Contributor

No description provided.

core/src/loader.rs Outdated Show resolved Hide resolved
@Aaron1011
Copy link
Member

Are you sure that this is done in URLLoader, and not in ByteArray? There's already some BOM-related logic in ByteArray, so I wonder if it just needs to be extended

@Mesteery
Copy link
Contributor Author

Mesteery commented Aug 14, 2024

Are you sure that this is done in URLLoader, and not in ByteArray? There's already some BOM-related logic in ByteArray, so I wonder if it just needs to be extended

According to uqers, in FP, URLLoader uses URLStream, so it's done in URLStream/readUTFBytes like in ByteArray

core/src/loader.rs Outdated Show resolved Hide resolved
@Mesteery Mesteery force-pushed the strip-bom-urlloader branch 2 times, most recently from 76f901a to 247f89d Compare August 14, 2024 19:18
@Dinnerbone
Copy link
Contributor

I would really appreciate a test for this!

@Mesteery Mesteery force-pushed the strip-bom-urlloader branch 3 times, most recently from 0608cbb to 698fc62 Compare August 22, 2024 09:38
@Dinnerbone Dinnerbone enabled auto-merge (squash) September 15, 2024 17:30
@Dinnerbone Dinnerbone merged commit c457fba into ruffle-rs:master Sep 15, 2024
17 checks passed
@Dinnerbone Dinnerbone added A-core Area: Core player, where no other category fits T-fix Type: Bug fix (in something that's supposed to work already) labels Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core player, where no other category fits T-fix Type: Bug fix (in something that's supposed to work already)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants