Converts a path from local code page to UTF-8, using the special semantics of file system paths.
#include <unilib.h> int loc2utf8path ( UniRuleTable_t table, char *dest, const char *src, size_t *dryRunSize);
(IN) Specifies the table to use in the conversion. To use the host's default code page, specify UNI_LOCAL_DEFAULT. Otherwise, specify the value returned from the UniGetTable function.
(OUT) Points to the converted path.
(IN) Points to the source path to use in the conversion.
(IN) Indicates whether to perform the conversion or merely compute the size of the converted string:
To perform the conversion, pass NULL.
To calculate the size of the converted string, pass the address of a variable of type size_t. The function returns in this parameter the number of characters that would be consumed in dest if the function were to perform the actual conversion. No conversion is performed. The count includes only the number of characters and does not include any null-terminating characters
If successful, returns 0. Otherwise, returns a negative error code: