coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

binaries built with `cargo build --release` do not work due to placement of localization files

Open willshuttleworth opened this issue 6 months ago • 2 comments

main branch, linux

$ cargo build --release
$ ./target/release/ls
Could not init the localization system: I/O error loading '/home/will/coreutils/target/release/ls/en-US.ftl': Not a directory (os error 20)

this only happens for release builds (cargo debug builds are fine), also happens for all binaries, including multicall

willshuttleworth avatar Jun 08 '25 14:06 willshuttleworth

Are you sure it happens with 0.1.0 too? Trunk, no doubt

sylvestre avatar Jun 08 '25 15:06 sylvestre

sorry, its happening on head of main, not in 0.1.0

willshuttleworth avatar Jun 08 '25 15:06 willshuttleworth

I can also reproduce this on a Mac:

Could not init the localization system: I/O error loading '/Users/kburke/local/coreutils/bin/cut/en-US.ftl': Not a directory (os error 20)

I believe it needs to point at local/coreutils/share/cut or similar instead of bin

kevinburke avatar Jun 20 '25 20:06 kevinburke