Skip to content

ufbt no longer properly deploys SDK on Windows Systems with non-Latin/Cyrillic system language #4024

@Alex4386

Description

@Alex4386

Describe the bug.

Running ufbt no longer properly deploys SDK on Windows system

Reproduction

  1. Open Command Prompt
  2. (Optional) If you have latest firmware SDK installed, clean it via ufbt clean
  3. Try setting up SDK via running ufbt
  4. The ufbt errors out with following error specified in Logs

Target

N/A

Logs

Raw:

C:\Users\alex4386\git\f0-template>ufbt
10:42:53.953 [I] Deploying SDK for f7
10:42:53.953 [I] Fetching version info for UpdateChannel.RELEASE from https://update.flipperzero.one/firmware/directory.json
10:42:54.564 [I] Using version: 1.1.2
10:42:54.565 [I] uFBT SDK dir: C:\Users\alex4386\.ufbt\current
10:42:57.428 [I] Deploying SDK
10:42:58.024 [I] SDK deployed.
Downloading Windows toolchain..done!


    디렉터리: C:\Users\alex4386\.ufbt


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----      4357-11-30  오전 10:43                toolchain
Extracting Windows toolchain..An error occurred
"2"개의 인수가 있는 "ExtractToDirectory"을(를) 호출하는 동안 예외가 발생했습니다. "경로에 잘못된 문자가 있습니다."
Please close VSCode and any other programs that may be using the toolchain and try again.
C:\Users\alex4386\AppData\Local\Programs\Python\Python311\python.exe: No module named SCons

Translation of output of windows-toolchain-download.ps1#L49.

While calling "ExtractToDirectory" with "2" arguments, Following exception has occurred:
"The path has invalid characters."

Anything else?

Something to note:

  • The Windows installation of this machine has language set to Korean. So, please note the CJK quirks (e.g. WideChar, MultiByte nonsense on Windows)
  • This does not reproduce on *NIX Machines (i.e. Linux, macOS, etc.)
    • Possible *NIX path (that's incompatible with NTFS Path) included in ZIP Archive?
  • Partial decompression does occur and ~/.ufbt/current contains some contents of the ZIP archive decompressed.

Metadata

Metadata

Assignees

Labels

Build System & Scriptsfbt, scripts and toolchain-relatedTriageIssues under initial investigation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions