fish-shell/fish-rust
Johannes Altmanninger 998cb7f1cd New wcs2zstring to explicitly convert to zero-terminated strings
wcs2string converts a wide string to a narrow one.  The result is
null-terminated and may also contain interior null-characters.
std::string allows this.

Rust's null-terminated string, CString, does not like interior null-characters.
This means we will need to use Vec<u8> or OsString for the places where we
use interior null-characters.
On the other hand, we want to use CString for places that require a
null-terminator, because other Rust types don't guarantee the null-terminator.

Turns out there is basically no overlap between the two use cases, so make
it two functions. Their equivalents in Rust will have the same name, so
we'll only need to adjust the type when porting.
2023-04-02 15:17:06 +02:00
..
src New wcs2zstring to explicitly convert to zero-terminated strings 2023-04-02 15:17:06 +02:00
widestring-suffix Initial Rust commit 2023-02-02 19:34:47 -07:00
build.rs trace: Port trace to Rust 2023-03-28 20:11:42 -07:00
Cargo.lock Replace the printf implementation 2023-03-26 14:07:29 -07:00
Cargo.toml Replace the printf implementation 2023-03-26 14:07:29 -07:00