Changeset 86074 in vbox for trunk/src/VBox/Runtime/r3/generic
- Timestamp:
- Sep 9, 2020 2:34:49 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 140292
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp
r82968 r86074 36 36 #include <iprt/errcore.h> 37 37 #include <iprt/string.h> 38 #ifdef RT_OS_SOLARIS 39 #include <iprt/path.h> 40 #endif /* RT_OS_SOLARIS */ 38 41 39 42 … … 42 45 { 43 46 const char *pszLocale = setlocale(LC_ALL, NULL); 44 if (!pszLocale) 47 if (pszLocale) 48 { 49 #ifdef RT_OS_SOLARIS /* Solaris can return a locale starting with a slash ('/'), e.g. /en_GB.UTF-8/C/C/C/C/C */ 50 if (RTPATH_IS_SLASH(*pszLocale)) 51 pszLocale++; 52 #endif /* RT_OS_SOLARIS */ 45 53 return RTStrCopy(pszName, cbName, pszLocale); 54 } 46 55 return VERR_NOT_AVAILABLE; 47 56 }
Note:
See TracChangeset
for help on using the changeset viewer.