Changeset 33426 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Oct 25, 2010 2:32:38 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67016
- Location:
- trunk/src/VBox/Runtime/r3
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/darwin/pathhost-darwin.cpp
r28919 r33426 93 93 } 94 94 95 96 int rtPathFromNativeDup(char **ppszPath, const char *pszNativePath, const char *pszBasePath) 97 { 98 /** @todo We must compose the codepoints in the string here. We get file names 99 * in normalization form D so we'll end up with normalization form C 100 * whatever approach we take. */ 101 int rc = RTStrValidateEncodingEx(pszNativePath, RTSTR_MAX, 0 /*fFlags*/); 102 if (RT_SUCCESS(rc)) 103 rc = RTStrDupEx(ppszPath, pszNativePath); 104 NOREF(pszBasePath); /* We don't query the FS for codeset preferences. */ 105 return rc; 106 } 107 -
trunk/src/VBox/Runtime/r3/posix/pathhost-posix.cpp
r30303 r33426 263 263 } 264 264 265 266 int rtPathFromNativeDup(char **ppszPath, const char *pszNativePath, const char *pszBasePath) 267 { 268 int rc = RTOnce(&g_OnceInitPathConv, rtPathConvInitOnce, NULL, NULL); 269 if (RT_SUCCESS(rc)) 270 { 271 if (g_fPassthruUtf8 || !*pszNativePath) 272 rc = RTStrDupEx(ppszPath, pszNativePath); 273 else 274 rc = rtStrConvert(pszNativePath, strlen(pszNativePath), g_szFsCodeset, 275 ppszPath, 0, "UTF-8", 276 2, g_enmFsToUtf8Idx); 277 } 278 279 NOREF(pszBasePath); /* We don't query the FS for codeset preferences. */ 280 return rc; 281 } 282
Note:
See TracChangeset
for help on using the changeset viewer.