VirtualBox

Changeset 28928 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Apr 30, 2010 11:24:30 AM (15 years ago)
Author:
vboxsync
Message:

utf8-posix.cpp: Fixed VERR_NO_TRANSLATION error on solaris.

File:
1 edited

Legend:

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

    r28919 r28928  
    149149        if (hIconv == (iconv_t)-1)
    150150        {
     151#ifdef RT_OS_SOLARIS
     152            /* Solaris doesn't grok empty codeset strings, so help it find the current codeset. */
     153            if (!*pszInputCS)
     154                pszInputCS = rtStrGetLocaleCodeset();
     155            if (!*pszOutputCS)
     156                pszOutputCS = rtStrGetLocaleCodeset();
     157#endif
    151158            IPRT_ALIGNMENT_CHECKS_DISABLE(); /* glibc causes trouble */
    152159            *phIconv = hIconv = iconv_open(pszOutputCS, pszInputCS);
Note: See TracChangeset for help on using the changeset viewer.

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