Skip to content

Bump to 4.3.6: Windows UTF-8 startup fix (dart_bridge 1.5.1, python-build 20260720)#238

Merged
FeodorFitsner merged 2 commits into
mainfrom
bump-4.3.5
Jul 20, 2026
Merged

Bump to 4.3.6: Windows UTF-8 startup fix (dart_bridge 1.5.1, python-build 20260720)#238
FeodorFitsner merged 2 commits into
mainfrom
bump-4.3.5

Conversation

@FeodorFitsner

@FeodorFitsner FeodorFitsner commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Cuts 4.3.6, re-pinning the bundled python-build snapshot to 20260720, which bumps dart_bridge 1.5.0 → 1.5.1.

Note: originally opened as 4.3.5. That version number was accidentally published to pub.dev before merge and has been retracted, so this PR is retargeted to 4.3.6. Content is unchanged.

What 1.5.1 fixes

Windows startup when app paths or environment values contain non-ASCII characters (dart-bridge#10, closes flet-dev/flet#6641). Dart FFI strings arrive as UTF-8 but were passed straight to the ANSI Windows CRT, corrupting paths/env through the process code page. Now:

  • UTF-8 → UTF-16 conversion at the Windows boundary; _wputenv_s / _wfopen_s instead of the ANSI variants.
  • Python UTF-8 mode enabled before Py_Initialize(); PYTHONUTF8=1 for multiprocessing helpers.
  • Embedded env-setup failures are now fatal instead of silently continuing with partial config.

Scope

Windows-only change. Manifest diff vs 20260719 is exactly dart_bridge_version + release date — iOS/macOS/Android/Linux runtimes are functionally unchanged. Python versions (3.12.13 / 3.13.14 / 3.14.6) unchanged.

Version tables regenerated from the new manifest (verified idempotent). All six packages bumped to 4.3.6 with CHANGELOG entries.

…uild 20260720)

Re-pin the bundled python-build snapshot to 20260720, which bumps dart_bridge
1.5.0 -> 1.5.1. 1.5.1 fixes Windows startup when app paths or environment
values contain non-ASCII characters: Dart FFI strings (UTF-8) are now converted
to UTF-16 before hitting the Windows CRT (_wputenv_s / _wfopen_s), Python UTF-8
mode is enabled before Py_Initialize(), and embedded env-setup failures are
fatal. Closes flet-dev/flet#6641.

Windows-only change; iOS/macOS/Android/Linux runtimes are functionally
unchanged from 20260719. Python versions (3.12.13 / 3.13.14 / 3.14.6) unchanged.
… pulled)

4.3.5 was published to pub.dev by mistake before this PR merged and has been
retracted, so the version number is burned. Bump all packages and CHANGELOG
sections to 4.3.6. Content is identical: python-build 20260720 / dart_bridge
1.5.1 Windows UTF-8 startup fix (flet #6641).
@FeodorFitsner FeodorFitsner changed the title Bump to 4.3.5: Windows UTF-8 startup fix (dart_bridge 1.5.1, python-build 20260720) Bump to 4.3.6: Windows UTF-8 startup fix (dart_bridge 1.5.1, python-build 20260720) Jul 20, 2026
@FeodorFitsner
FeodorFitsner merged commit daada1a into main Jul 20, 2026
7 of 54 checks passed
@FeodorFitsner
FeodorFitsner deleted the bump-4.3.5 branch July 20, 2026 19:50
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.

bug: Built application fails when paths or TOML configuration contain German umlaut characters

1 participant