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
..
2023-04-16 17:46:56 +02:00
2023-04-16 17:46:56 +02:00
2023-04-19 22:43:36 +02:00
2023-04-19 01:03:16 +02:00
2023-05-21 11:50:24 -07:00
2023-04-19 01:03:16 +02:00
2023-04-19 01:03:16 +02:00
2023-04-19 01:03:16 +02:00
2021-10-01 03:39:43 -07:00
2023-01-14 12:58:20 -08:00
2023-04-19 01:03:16 +02:00
2023-04-19 01:03:16 +02:00
2023-04-19 01:03:16 +02:00
2023-04-16 17:46:56 +02:00
2023-04-19 01:03:16 +02:00
2023-04-16 17:46:56 +02:00
2023-04-16 17:46:56 +02:00
2023-02-02 19:34:47 -07:00
2023-05-21 11:50:24 -07:00
2021-09-21 18:33:14 -07:00
2023-05-02 11:52:41 -05:00
2023-02-02 19:34:47 -07:00
2023-04-19 01:03:16 +02:00
2023-04-19 22:43:36 +02:00
2023-04-19 22:43:36 +02:00
2022-08-21 15:02:19 -07:00
2023-04-19 01:03:16 +02:00
2023-04-19 22:43:36 +02:00
2023-05-21 11:50:24 -07:00
2023-05-21 11:50:24 -07:00
2023-04-19 01:03:16 +02:00
2023-04-19 01:03:16 +02:00
2023-04-19 01:03:16 +02:00
2023-04-16 17:46:56 +02:00
2023-04-19 10:35:22 +02:00
2023-05-14 18:03:52 -07:00
2023-04-19 22:43:36 +02:00
2023-02-25 16:42:45 -06:00
2023-04-19 01:03:16 +02:00
2023-04-19 01:03:16 +02:00
2023-04-19 01:03:16 +02:00
2023-02-02 19:34:47 -07:00
2023-03-19 16:13:41 -07:00
2023-02-09 00:37:22 +01:00
2023-02-02 19:34:47 -07:00
2023-02-03 18:55:06 +01:00
2023-04-19 22:43:36 +02:00
2023-04-19 22:43:36 +02:00
2022-12-11 10:26:39 -08:00
2022-12-04 14:48:20 -08:00
2023-04-02 15:17:06 +02:00
2022-08-20 23:55:18 -07:00
2023-04-19 01:03:16 +02:00
2023-05-07 15:15:56 -07:00