You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wrapper functions in gettext-rs have to allocate CStrings on each call due to the interface of the underlying C library.
It may be interesting to use something like what the cstr! macro in the cstr crate does to append the trailing zero byte at compile time and pass the result directly to the gettext-sys functions, avoiding the intermediate allocation.
The text was updated successfully, but these errors were encountered:
The wrapper functions in gettext-rs have to allocate
CString
s on each call due to the interface of the underlying C library.It may be interesting to use something like what the
cstr!
macro in the cstr crate does to append the trailing zero byte at compile time and pass the result directly to the gettext-sys functions, avoiding the intermediate allocation.The text was updated successfully, but these errors were encountered: