int rtPathFromNativeDup(char **ppszPath, const char *pszNativePath, const char *pszBasePath) { int rc = RTStrValidateEncodingEx(pszNativePath, RTSTR_MAX, 0 /*fFlags*/); if (RT_SUCCESS(rc)) rc = RTStrDupEx(ppszPath, pszNativePath); NOREF(pszBasePath); /* We don't query the FS for codeset preferences. */ return rc; }
int rtPathFromNativeDup(char **ppszPath, const char *pszNativePath, const char *pszBasePath) { /** @todo We must compose the codepoints in the string here. We get file names * in normalization form D so we'll end up with normalization form C * whatever approach we take. */ int rc = RTStrValidateEncodingEx(pszNativePath, RTSTR_MAX, 0 /*fFlags*/); if (RT_SUCCESS(rc)) rc = RTStrDupEx(ppszPath, pszNativePath); NOREF(pszBasePath); /* We don't query the FS for codeset preferences. */ return rc; }