[GH-ISSUE #6343] Build breaks when building on a windows account which has accents in its name #2056

Open
opened 2026-11-02 15:51:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @sleepyturtler on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6343

for example hungarian accents like éá
"Building horizon-mixins failed (exit code: 101). Its first errors and the end of its output, the whole of it in C:\Users\BOTTON1\AppData\Roaming
\HORIZO
1\native\build.log:
error: could not compile `thiserror-impl' (lib) due to 1 previous error

...

= note: Non-UTF-8 output: C:/Users/BottoniD\xe1nielBal\xe1zs/AppData/Roaming/horizon-launcher/rust/1.99.1-x86_64-pc-windows-gnu/mingw64/bin
/./lib/gcc/x86_64-w64-mingw32/16.2.0/ .. / .. / .. / .. /x86_64-w64-mingw32/bin/ld.exe: cannot find C:\Users\BottoniD\xc3\xa1nielBal\xc3\xa1zs\AppData
\Roaming\horizon-launcher\tmp\cargo-installf7CGL5\release\deps\libheck-3c945291157bfddf.rlib: No such file or directory\r\nC:/Users/BottoniD
\xe1nielBal\xe1zs/AppData/Roaming/horizon-launcher/rust/1.99.1-x86_64-pc-windows-gnu/mingw64/bin/ .. /lib/gcc/x86_64-w64-mingw32/16.2.0/ .. / _. / .. / ..
/x86_64-w64-mingw32/bin/ld.exe: cannot find C:\Users\BottoniD\xc3\xa1nielBal\xc3\xa1zs\AppData\Roaming\horizon-launcher\tmp
\cargo-installf7CGL5\release\deps\libsyn-Obe491fa0d4526d9.rlib: No such file or directory\r\nC:/Users/BottoniD\xe1nielBal\xelzs/AppData"

Originally created by @sleepyturtler on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6343 for example hungarian accents like éá "Building horizon-mixins failed (exit code: 101). Its first errors and the end of its output, the whole of it in C:\Users\BOTTON~1\AppData\Roaming \HORIZO~1\native\build.log: error: could not compile `thiserror-impl' (lib) due to 1 previous error ... = note: Non-UTF-8 output: C:/Users/BottoniD\xe1nielBal\xe1zs/AppData/Roaming/horizon-launcher/rust/1.99.1-x86_64-pc-windows-gnu/mingw64/bin /./lib/gcc/x86_64-w64-mingw32/16.2.0/ .. / .. / .. / .. /x86_64-w64-mingw32/bin/ld.exe: cannot find C:\\Users\\BottoniD\xc3\xa1nielBal\xc3\xa1zs\\AppData\ \Roaming\\horizon-launcher\\tmp\\cargo-installf7CGL5\\release\\deps\\libheck-3c945291157bfddf.rlib: No such file or directory\r\nC:/Users/BottoniD \xe1nielBal\xe1zs/AppData/Roaming/horizon-launcher/rust/1.99.1-x86_64-pc-windows-gnu/mingw64/bin/ .. /lib/gcc/x86_64-w64-mingw32/16.2.0/ .. / _. / .. / .. /x86_64-w64-mingw32/bin/ld.exe: cannot find C:\\Users\\BottoniD\xc3\xa1nielBal\xc3\xa1zs\\AppData\\Roaming\\horizon-launcher\\tmp\ \cargo-installf7CGL5\\release\\deps\\libsyn-Obe491fa0d4526d9.rlib: No such file or directory\r\nC:/Users/BottoniD\xe1nielBal\xelzs/AppData"
Author
Owner

@OsamahDev1 commented on GitHub (Nov 1, 2026):

🤖 Agent: This is #6009 again, and #6155 (merged on main after launcher 0.2.34 was released) fixes it. I checked both on a real Windows 11 machine.

Setup. The launcher's own toolchain, downloaded from the URLs in launcher/src/rust_toolchain.rs and checked against its SHA-256 pins (Rust 1.99.1 x86_64-pc-windows-gnu + WinLibs GCC 16.2.0). A launcher data folder under a profile named BottoniDánielBalázs (USERPROFILE/APPDATA point there; ANSI code page 1252; 8.3 names on). build_dir() compiled verbatim from each launcher version, and every command run with Toolchain::command()'s environment (PATH, RUSTC, CARGO_HOME, TMP/TEMP, the drive root as working directory).

build_dir() from Build folder cargo install horizon-mixins-cli (rev ddd9700b) Game (--profile fast -p horizon-client)
launcher 0.2.34 …\BOTTON~1\AppData\Roaming\HORIZO~1 ❌ fails as reported: thiserror-impl, ld.exe: cannot find …BottoniD\xc3\xa1nielBal\xc3\xa1zs…\libheck-3c945291157bfddf.rlib not reached
main (#6155) C:\ProgramData\horizon-launcher-e023262b ✅ 1 min 03 s; horizon-mixins 0.6.0 runs ✅ 6 min 02 s, 277 crates, ring and hidapi (C through MinGW) and windows-sys included

The short name doesn't survive the build: cargo and rustc expand BOTTON~1 back to the long name, and MinGW's ld gets á as UTF-8 bytes it can't open. So the 8.3 fallback windows_build_dir keeps for when the ProgramData folder can't be created would fail the same way.

Not tested: the launcher's window itself (no Windows SDK on this machine), and a build with mods applied by horizon-mixins.

Once a launcher release includes #6155, this can be closed as a duplicate of #6009.

<!-- gh-comment-id:6564323507 --> @OsamahDev1 commented on GitHub (Nov 1, 2026): 🤖 Agent: This is #6009 again, and #6155 (merged on main after launcher 0.2.34 was released) fixes it. I checked both on a real Windows 11 machine. **Setup.** The launcher's own toolchain, downloaded from the URLs in `launcher/src/rust_toolchain.rs` and checked against its SHA-256 pins (Rust 1.99.1 `x86_64-pc-windows-gnu` + WinLibs GCC 16.2.0). A launcher data folder under a profile named `BottoniDánielBalázs` (`USERPROFILE`/`APPDATA` point there; ANSI code page 1252; 8.3 names on). `build_dir()` compiled verbatim from each launcher version, and every command run with `Toolchain::command()`'s environment (`PATH`, `RUSTC`, `CARGO_HOME`, `TMP`/`TEMP`, the drive root as working directory). | `build_dir()` from | Build folder | `cargo install horizon-mixins-cli` (rev `ddd9700b`) | Game (`--profile fast -p horizon-client`) | |---|---|---|---| | launcher 0.2.34 | `…\BOTTON~1\AppData\Roaming\HORIZO~1` | ❌ fails as reported: `thiserror-impl`, `ld.exe: cannot find …BottoniD\xc3\xa1nielBal\xc3\xa1zs…\libheck-3c945291157bfddf.rlib` | not reached | | main (#6155) | `C:\ProgramData\horizon-launcher-e023262b` | ✅ 1 min 03 s; `horizon-mixins 0.6.0` runs | ✅ 6 min 02 s, 277 crates, `ring` and `hidapi` (C through MinGW) and `windows-sys` included | The short name doesn't survive the build: cargo and rustc expand `BOTTON~1` back to the long name, and MinGW's `ld` gets `á` as UTF-8 bytes it can't open. So the 8.3 fallback `windows_build_dir` keeps for when the ProgramData folder can't be created would fail the same way. Not tested: the launcher's window itself (no Windows SDK on this machine), and a build with mods applied by horizon-mixins. Once a launcher release includes #6155, this can be closed as a duplicate of #6009.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2056
No description provided.