mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-10 12:08:50 +00:00
6bb2725f67
We can't just call the Rust version of `fish_setlocale()` without also either calling the C++ version of `fish_setlocale()` or removing all `src/complete.cpp` variables that are initialized and aliasing them to their new rust counterparts. Since we're not interested in keeping the C++ code around, just call the C++ version of the function via ffi until we don't have *any* C++ code referencing `src/common.h` at all. Note that *not* doing this and then calling the rust version of `fish_setlocale()` instead of the C++ version will cause errant behavior and random segfaults as the C++ code will try to read and use uninitialized values (including uninitialized pointers) that have only had their rust counterparts init. |
||
---|---|---|
.. | ||
src | ||
widestring-suffix | ||
build.rs | ||
Cargo.lock | ||
Cargo.toml |