Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Cdt-launch-inbox] [Bug 131513] New: Apply does not work for multiline program arguments

https://bugs.eclipse.org/bugs/show_bug.cgi?id=131513 
Product/Component: CDT / cdt-launch

           Summary: Apply does not work for multiline program arguments
           Product: CDT
           Version: 3.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: cdt-launch
        AssignedTo: cdt-launch-inbox@xxxxxxxxxxx
        ReportedBy: norbert.ploett@xxxxxxxxxxx


On the "Program Arguments" tab (in class CArgumentsTab) the input window for
program arguments is a multiline Text widget. When the arguments actually
contain linebreaks then the Apply button stops functioning properly. Even when
clicked it does not turn gray.

The reason is that the text widget return multiline strings containing \r\n.
When however the configuration is saved to disc the strings are represented as
\n only. The \r are stripped during saving in
org.eclipse.debug.internal.core.LaunchManager.serializeDocument() which uses a
javax.xml.transform.Transformer which somehow strips away the \r.

The consequence is that the saved configuration and the working copy always
seem to be different since the linebreak representation is not uniform.

The suggested fix is to modify the CArgumentsTab so that it will strip \r when
retrieved from the Text widget and before it is written to the working copy. In
this manner the working copy and saved configurations have the same linebreak
representation. 

Needless to say this bug will appear only on Windows.

- Apply is never grayed



-- 
Configure bugzilla e-mail: https://bugs.eclipse.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Back to the top