VirtualBox

Changeset 38637 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Sep 5, 2011 1:51:53 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73844
Message:

*,IPRT: Redid the ring-3 init to always convert the arguments to UTF-8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r38636 r38637  
    16171617    if (!fOnlyInfo && rcExit == RTEXITCODE_SUCCESS)
    16181618    {
    1619         /*
    1620          * The input is in the guest OS'es codepage (NT guarantees ACP).
    1621          * For VBox we use UTF-8.  For simplicity, just convert the argv[] array
    1622          * here.
    1623          */
    1624         /** @todo this must be done before we start checking for --help and
    1625          *        stuff above. */
    1626         for (int i = iArg; i < argc; i++)
    1627         {
    1628             char *pszConverted;
    1629             RTStrCurrentCPToUtf8(&pszConverted, argv[i]);
    1630             argv[i] = pszConverted;
    1631         }
    1632 
    16331619        if (argc > iArg)
    16341620        {
     
    16551641            usage();
    16561642        }
    1657 
    1658         /*
    1659          * Free converted argument vector
    1660          */
    1661         for (int i = iArg; i < argc; i++)
    1662             RTStrFree(argv[i]);
    16631643    }
    16641644
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