UnixUtil.StringToPPChar handles wrongly quoted text which includes spaces.
Original Reporter info from Mantis: Cyrax
-
Reporter name:
Original Reporter info from Mantis: Cyrax
- Reporter name:
Description:
Like summary says, UnixUtil.StringToPPChar splits quoted text (if the quote character is found somewhere else than beginning/end) at wrong locations if quoted text contains spaces. This causes external utilities which are called by compiler to function improperly due to quoting if the path name is long and contain spaces.
Attached test project demonstrates this bug.
Additional information:
Attached test project outputs following lines :
/usr/bin/objcopy --add-gnu-debuglink="/mnt/shares/ohjelmointi/32-bit/kielet/pascal/free_pascal/lazarus/projects/research 02/source 07/fpc linux fork test 00/bin/x86_64-linux-Default2-30301/project1.dbg" /mnt/shares/ohjelmointi/32-bit/kielet/pascal/free_pascal/lazarus/projects/research 02/source 07/fpc linux fork test 00/bin/x86_64-linux-Default2-30301/project1
Mantis conversion info:
- Mantis ID: 35323
- Build: r41823
- Version: 3.3.1