Description: Windows Commandline handling (escaping, unicode)

This file as text.
(active) Revisions in this set:
8d95da3feafcffcd7b2bf539bfdf4b90a09c2963,187cc46b327903667c670cf6c50a4b524824d892,e74d89ce62efab3983701b34278fe7aa61aeead1

Clicking a revision will expand files
 


* Windows: Reworked handling of command line arguments to properly support Unicode:
- Use the CommandLineToArgvW API function to parse the Unicode command line (we can use it since Win9x is not supported anymore).
- Implemented non-public functions ParamStrA and ParamStrU which are exposed in the objpas and uuchar units to provide correct AnsiString and UnicodeString versions of ParamStr().
- The cleanup code is moved from InternalExit to the finalization section of the System unit.
Commit consists out of
  • M rtl/inc/system.inc
  • M rtl/inc/uuchar.pp
  • M rtl/objpas/objpas.pp
  • M rtl/win/sysos.inc
  • M rtl/win/syswin.inc
  • M rtl/win/syswinh.inc
  • M rtl/win32/system.pp
  • M rtl/win64/system.pp


* Windows: Do not use CommandLineToArgvW for parsing command line parameters, because it treats \" as an escape sequence for the double quote.
- Implemented parsing of the command line which is backward compatible.
- Do not use GetCommandLineA.
Commit consists out of
  • M rtl/win/sysos.inc
  • M rtl/win/syswin.inc


* patch by Dean Mustakinov to improve commandline quote handling on Windows, resolves gitlab 0040189
Commit consists out of
  • M rtl/win/syswin.inc
  • D tests/utils/dosbox/exitcode.exe