- Timestamp:
- Mar 12, 2008 9:46:29 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28861
- Location:
- trunk/src/VBox/Runtime/r3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/utf8-posix.cpp
r5999 r7426 74 74 { 75 75 cbOutput2 = cbInput * cFactor; 76 pvOutput = RTMemTmpAlloc(cbOutput2 + sizeof(RTU CS2));76 pvOutput = RTMemTmpAlloc(cbOutput2 + sizeof(RTUTF16)); 77 77 if (!pvOutput) 78 78 return VERR_NO_TMP_MEMORY; … … 81 81 { 82 82 pvOutput = *ppvOutput; 83 cbOutput2 = cbOutput - (!strcmp(pszOutputCS, "UCS-2") ? sizeof(RTU CS2) : 1);83 cbOutput2 = cbOutput - (!strcmp(pszOutputCS, "UCS-2") ? sizeof(RTUTF16) : 1); 84 84 if (cbOutput2 > cbOutput) 85 85 return VERR_BUFFER_OVERFLOW; … … 101 101 pszOutputCS = nl_langinfo(CODESET); 102 102 #endif 103 iconv_t icHandle = iconv_open(pszOutputCS, pszInputCS); 103 iconv_t icHandle = iconv_open(pszOutputCS, pszInputCS); 104 104 if (icHandle != (iconv_t)-1) 105 105 { … … 125 125 iconv_close(icHandle); 126 126 if (!cbOutput || !strcmp(pszOutputCS, "UCS-2")) 127 *(PRTU CS2)pvOutputLeft = '\0';127 *(PRTUTF16)pvOutputLeft = '\0'; 128 128 else 129 129 *(char *)pvOutputLeft = '\0'; -
trunk/src/VBox/Runtime/r3/win/fileio-win.cpp
r7169 r7426 229 229 NULL); 230 230 #else 231 PRTU CS2pwszFilename;231 PRTUTF16 pwszFilename; 232 232 rc = RTStrToUtf16(pszFilename, &pwszFilename); 233 233 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.