Skip to content

Conversation

@flutteractionsbot
Copy link

@flutteractionsbot flutteractionsbot commented Dec 10, 2025

Issue Link:

#178896

Changelog Description:

Fixes an issue that makes Windows apps unable to launch when placed in a path containing non-ASCII characters.

Impact Description:

Apps crash during launch on Windows when run from paths containing non-ASCII characters.

Workaround:

Install the app at a different path.

Risk:

What is the risk level of this cherry-pick?

  • Low
  • Medium
  • High

Test Coverage:

Are you confident that your fix is well-tested by automated tests?

  • Yes
  • No

Validation Steps:

Build a Flutter app targeting Windows and move the build output to a directory containing a non-ASCII character. Verify that the app runs when launched from that directory.

…8 strings on Windows (flutter#179528)

Fixes flutter#178896

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@flutteractionsbot flutteractionsbot added the cp: review Cherry-picks in the review queue label Dec 10, 2025
@flutteractionsbot
Copy link
Author

@jason-simmons please fill out the PR description above, afterwards the release team will review this request.

@flutter-dashboard
Copy link

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@github-actions github-actions bot added engine flutter/engine related. See also e: labels. platform-windows Building on or for Windows specifically a: desktop Running on desktop labels Dec 10, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new utility function fml::PathToUtf8 to correctly convert std::filesystem::path objects to UTF-8 encoded std::strings. This is particularly important on Windows to handle paths with non-ASCII characters correctly. The new function is consistently applied across the codebase, replacing previous methods that could lead to incorrect string encoding. The changes are logical, include corresponding unit tests, and effectively resolve the underlying issue. The implementation is clean and follows best practices. I found no issues of medium or higher severity.

@camsim99 camsim99 added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 16, 2025
@auto-submit auto-submit bot merged commit d7b4253 into flutter:flutter-3.38-candidate.0 Dec 16, 2025
162 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: desktop Running on desktop autosubmit Merge PR when tree becomes green via auto submit App cp: review Cherry-picks in the review queue engine flutter/engine related. See also e: labels. platform-windows Building on or for Windows specifically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants