Changeset 33426 in vbox for trunk/src/VBox/Runtime/r3/posix
- Timestamp:
- Oct 25, 2010 2:32:38 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67016
- Location:
- trunk/src/VBox/Runtime/r3/posix
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.