fish-shell/fish-rust
Mahmoud Al-Qudsi 6bb2725f67 Make sure rust's fish_setlocale() inits global C++ variables
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.
2023-05-25 16:54:07 -05:00
..
src Make sure rust's fish_setlocale() inits global C++ variables 2023-05-25 16:54:07 -05:00
widestring-suffix Initial Rust commit 2023-02-02 19:34:47 -07:00
build.rs Add rsconf build system and check for gettext symbols 2023-05-25 16:54:03 -05:00
Cargo.lock Add rsconf build system and check for gettext symbols 2023-05-25 16:54:03 -05:00
Cargo.toml Add rsconf build system and check for gettext symbols 2023-05-25 16:54:03 -05:00