-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Mangus,
as far as we know, with the current SVN code / test build you got, RTGetOptArgvToString/BOURNE_SH (host side) and RTGetOptArgvFromString (guest side) round-trips just fine now. So, argument vectors should be transferred to the guest without getting corrupted now. CommandLineToArgvW round-trips just fine with the output from RTGetOptArgvToString(RTGETOPTARGV_CNV_QUOTE_MS_CRT) (i.e. the windows API returns the RTGetOptArgvToString input), even for examples you're giving (test="ok"). So, when converting the argument vector to the native windows command line format, we're doing in a manner compatible with the windows APIs. If there are more bugs launching applications in the guest or issues with guest side applications you need working not following the rules implemented by CommandLineToArgvW, please let us know the details and we'll try fix the bugs and figure out how to work around issues with specific apps. Kind Regards, bird On 2015-04-29 15:09, Magnus Madsen wrote: > Hi Frank, > > Thank you for looking into the issue! I tested 99864 and there is > still a problem, but it is different. > > An argument of: test="ok" > > will be changed to "test=\"ok\"" > > So now the double quotes are not being stripped, however the > escaping backslashes are not removed and the argument is still > enclosed in another set of double quotes in the resulting argument > string used to start the process. > > If it is any help, this is the modified file that I got working: > > http://pastebin.com/mCiCZxuV > > I think that the RTGetOptArgvFromString function should be okay, > but I made a quick hack to the rtGetOpArgvRequiresQuoting function > to prevent it from enclosing in quotes if not necessary - I doubt > it'd be good enough for production. > > Kr, Magnus > > > _______________________________________________ vbox-dev mailing > list [email protected] > https://www.virtualbox.org/mailman/listinfo/vbox-dev > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVQPNoAAoJEOutQgSnoggNmw4P/0ad6eQpnj7S1mRfSPefXdK3 nS/fWXN9aBEGx2UvLM1w4CYIp1Juh4WelGI+Uj2ewUdyEr+J1YL7KtGmsqxXHUsW qlu8OKE4HjmBM53qHraubKHCuj548AbOTcu/YnC3VfToZmzNPm1krnEGGXqlGZ1S EOumSqqJ90bfiNvB8rlQc5vicW/9eX+RyZ+HWLbCSlMLULszPxraNmtxhqrXePXD 8IXf7v4XeBfc4Yct0SvKBIzKhkN9qckkXxWytwBt52QBwI2vGMCqJwlXSZSGg/Vs jd2AMg1tgAZ8Vo9byvLc1J+B+KTT0iN9dJytp2bF+ko6xTMKH0zHVgsJXkoi556C Um20bs2iTkeGjo2TXaM7n5bbDvX07quk0O6Nuu7iKoOlEaE3QrEVo+6a4qP2EE/e Sk0F3CTCXO8qXvnK4maSHOWO9/vOL680KgnYHnrezFGlT9i8STy/0+UBla2yyDWI +AZY9ja4q6YGh6d6LeSylVMRdciOO4kFyWlYjrqJ6fH+hZIo0qXuAUlSuYWy9Sbv 8+6F1dB3LZOhW7SjR8V81B/FpCo7R0qs1HKSATjW3VaEbSgr4d4fMdlOJnb0V5VP QFpBwU8P/wQ0wheLLC1tamdvpdU3wb52CekvlsNCoYunBgMu2SLmaTFix7amkahU qhjXUe3jjqajvQ52nXsr =/eHS -----END PGP SIGNATURE----- _______________________________________________ vbox-dev mailing list [email protected] https://www.virtualbox.org/mailman/listinfo/vbox-dev
