Ticket #13 (closed defect: fixed)

Opened 1 year ago

Last modified 10 months ago

Editing a PC inserts incorrect spaces into argument

Reported by: andreas.faerber@web.de Assigned to: mike
Priority: normal Milestone: Q-0.9.1aX
Component: editPC Version: Q-0.9.0a89
Severity: minor Keywords:
Cc:

Description

Q relies on the guest command line arguments in the configuration file being separated by single whitespace characters.

This is problematic because editing a PC without manual QEMU parameters adds a whitespace character before such an empty string, leading to a constantly growing file and inability to launch the guest.

An initial patch was provided to start tackling this.

But additionally, Q does not recognize every single-token parameter and tracking those is a tedious task. Instead, once initial fixes are in place, the argument parsing should be revisited to no longer rely on this string-explosion based on whitespace character, i.e. tokenizing quoted and unquoted strings, ignoring any combination of whitespace characters in between.

Attachments

editpc_space.diff (0.6 kB) - added by andreasf on 08/31/07 17:32:07.
Patch to only append non-empty QEMU parameters

Change History

08/31/07 17:32:07 changed by andreasf

  • attachment editpc_space.diff added.

Patch to only append non-empty QEMU parameters

09/01/07 23:13:36 changed by cordney

  • status changed from new to closed.
  • resolution set to fixed.

fixed (r90), single-token parameter problem moved to #30

01/15/08 17:58:33 changed by mike

  • milestone changed from Q-0.9.0aX to Q-0.9.1aX.