Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Impeller] Always convert std::filesystem paths in ImpellerC to UTF-8 strings #36158

Merged
merged 1 commit into from
Sep 15, 2022

Conversation

jason-simmons
Copy link
Member

FML filesystem functions assume UTF-8, but the default string encoding on platforms such as Windows may be something else

Fixes flutter/flutter#107590

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. We should come up with a way to test this

FML filesystem functions assume UTF-8, but the default string encoding on
platforms such as Windows may be something else

Fixes flutter/flutter#107590
@jason-simmons jason-simmons added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 15, 2022
@auto-submit auto-submit bot merged commit b6f4f8d into flutter:main Sep 15, 2022
@zanderso
Copy link
Member

@Macacoazul01
Copy link

@dnfield @zanderso will this fix be added on 3.3.3?

@chinmaygarde chinmaygarde changed the title Always convert std::filesystem paths in ImpellerC to UTF-8 strings [Impeller] Always convert std::filesystem paths in ImpellerC to UTF-8 strings Sep 15, 2022
jason-simmons added a commit to jason-simmons/flutter_engine that referenced this pull request Sep 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App e: impeller needs tests
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[flutter_tools] ShaderCompilerException with exit code -1073740791
5 participants