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
I.e. OsStr is a WTF-8 encoded string for Windows and UEFI and a bytes array for all other platforms.
However, serde only differentiates between UNIX and Windows for serialization and deserialization, as can be seen from the following serialization code for OsStr:
This is the platform differentiation of the Rust standard library for
OsStr
, provided insrc/sys/os_str/mod.rs
:I.e.
OsStr
is a WTF-8 encoded string for Windows and UEFI and a bytes array for all other platforms.However, serde only differentiates between UNIX and Windows for serialization and deserialization, as can be seen from the following serialization code for
OsStr
:Obviously there is a mismatch between the standard library and serde, causing problems on platforms other than Windows and UNIX.
I think the best solution would be to use the same platform differentiation as the standard library. Would this be possible?
The text was updated successfully, but these errors were encountered: