-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
ufbt
no longer properly deploys SDK on Windows Systems with non-Latin/Cyrillic system language
#4024
Comments
fbt
no longer properly deploys SDK on Windows Systemsufbt
no longer properly deploys SDK on Windows Systems
I have implemented the following using Will try with lower .NET version since I'm using Powershell included with Windows 10 I think the System.IO.Compression::ZIPFile.ExtractToDirectory implementation differs by the .NET Runtime version and reproduces only on lower powershell versions (i.e. pre-Powershell 7 era) that uses .NET Framework as their implementation, will look into it. |
I can successfully reproduce with targetting According to Here is the debugger catch screenshot if you want to do some checks: |
Found the culprit! Due to Since
Well, This really was a fore-shadowing, isn't it. |
…ncoding (flipperdevices#4024) Due to cryillic alphabet on `/openocd/scripts/target/1986ве1т.cfg`, If the system codepage is handling `WideChar` for cryillic properly, It would cause jumbled characters and fail to decompress via System.IO.Compression.ZipFile without Encoding enforcement. (See flipperdevices#4024 (comment))
I have verified that |
ufbt
no longer properly deploys SDK on Windows Systemsufbt
no longer properly deploys SDK on Windows Systems with non-English/Russian system language
ufbt
no longer properly deploys SDK on Windows Systems with non-English/Russian system languageufbt
no longer properly deploys SDK on Windows Systems with non-Latin/Cyrillic system language
…lipperdevices#4024) Due to cryillic alphabet on `/openocd/scripts/target/1986ве1т.cfg`, If the system codepage is handling `WideChar` for cryillic properly, It would cause jumbled characters and fail to decompress via System.IO.Compression.ZipFile without Encoding enforcement. (See flipperdevices#4024 (comment))
… use UTF-8 on initial SDK Extraction (#4036) * Fix invalid path errors for non-Latin characters by enforcing UTF-8 (#4024) Due to cryillic alphabet on `/openocd/scripts/target/1986ве1т.cfg`, If the system codepage is handling `WideChar` for cryillic properly, It would cause jumbled characters and fail to decompress via System.IO.Compression.ZipFile without Encoding enforcement. (See #4024 (comment)) * Scripts: fix line endings Co-authored-by: あく <alleteam@gmail.com>
… use UTF-8 on initial SDK Extraction (flipperdevices#4036) * Fix invalid path errors for non-Latin characters by enforcing UTF-8 (flipperdevices#4024) Due to cryillic alphabet on `/openocd/scripts/target/1986ве1т.cfg`, If the system codepage is handling `WideChar` for cryillic properly, It would cause jumbled characters and fail to decompress via System.IO.Compression.ZipFile without Encoding enforcement. (See flipperdevices#4024 (comment)) * Scripts: fix line endings Co-authored-by: あく <alleteam@gmail.com>
Describe the bug.
Running
ufbt
no longer properly deploys SDK on Windows systemReproduction
ufbt clean
ufbt
ufbt
errors out with following error specified in LogsTarget
N/A
Logs
Raw:
Translation of output of windows-toolchain-download.ps1#L49.
Anything else?
Something to note:
Korean
. So, please note theCJK
quirks (e.g.WideChar
,MultiByte
nonsense on Windows)Linux
,macOS
, etc.)ZIP Archive
?~/.ufbt/current
contains some contents of theZIP archive
decompressed.The text was updated successfully, but these errors were encountered: