VirtualBox

Changeset 7426 in vbox for trunk


Ignore:
Timestamp:
Mar 12, 2008 9:46:29 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28861
Message:

RTUCS2 -> RTUTF16.

Location:
trunk/src/VBox/Runtime/r3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/utf8-posix.cpp

    r5999 r7426  
    7474    {
    7575        cbOutput2 = cbInput * cFactor;
    76         pvOutput = RTMemTmpAlloc(cbOutput2 + sizeof(RTUCS2));
     76        pvOutput = RTMemTmpAlloc(cbOutput2 + sizeof(RTUTF16));
    7777        if (!pvOutput)
    7878            return VERR_NO_TMP_MEMORY;
     
    8181    {
    8282        pvOutput = *ppvOutput;
    83         cbOutput2 = cbOutput - (!strcmp(pszOutputCS, "UCS-2") ? sizeof(RTUCS2) : 1);
     83        cbOutput2 = cbOutput - (!strcmp(pszOutputCS, "UCS-2") ? sizeof(RTUTF16) : 1);
    8484        if (cbOutput2 > cbOutput)
    8585            return VERR_BUFFER_OVERFLOW;
     
    101101            pszOutputCS = nl_langinfo(CODESET);
    102102#endif
    103         iconv_t icHandle = iconv_open(pszOutputCS, pszInputCS);       
     103        iconv_t icHandle = iconv_open(pszOutputCS, pszInputCS);
    104104        if (icHandle != (iconv_t)-1)
    105105        {
     
    125125                    iconv_close(icHandle);
    126126                    if (!cbOutput || !strcmp(pszOutputCS, "UCS-2"))
    127                         *(PRTUCS2)pvOutputLeft = '\0';
     127                        *(PRTUTF16)pvOutputLeft = '\0';
    128128                    else
    129129                        *(char *)pvOutputLeft = '\0';
  • trunk/src/VBox/Runtime/r3/win/fileio-win.cpp

    r7169 r7426  
    229229                              NULL);
    230230#else
    231     PRTUCS2 pwszFilename;
     231    PRTUTF16 pwszFilename;
    232232    rc = RTStrToUtf16(pszFilename, &pwszFilename);
    233233    if (RT_FAILURE(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette