pub unsafe extern "C" fn rb_str_encode_ospath(path: VALUE) -> VALUEExpand description
Converts a string into an “OS Path” encoding, if any. In most operating systems there are no such things like per-OS default encoding of filename. For them this function is no-op. However most notably on MacOS, pathnames are UTF-8 encoded. It converts the given string into such encoding.
§@param[in] path An instance of ::rb_cString.
@exception rb_eEncCompatError path’s encoding is not path-compat.
@return path‘s contents converted to the OS’ path encoding.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.3.8