Different outputs for space-containing path #139

Closed
opened 2017-09-19 10:00:02 +00:00 by karen-arutyunov · 0 comments
karen-arutyunov commented 2017-09-19 10:00:02 +00:00 (Migrated from github.com)

The following Cflags space-containing values are equivalent:

Cflags: -I/A\ B
Cflags: '-I/A B'

However 'pkgconf --cflags' prints them differently (in contrast to 'pkg-config --cflags').

In the first case: -I/A\ B
Which means a single option '-I/A B'

In the second case: -I/A B
Which means 2 options: '-I/A' and 'B'

This issue resides on libpkgconf library level as pkgconf_pkg_cflags() returns lists of different pkgconf_fragment_t objects as well. In both cases the list contains 1 element which data member contains

-I/A\ B

in the first case and

-I/A B

in the second case.

It would be natural to expect that pkgconf_fragment_t object always contains unquoted value with unescaped space character, so in both cases it should be:

-I/A B

The following Cflags space-containing values are equivalent: Cflags: -I/A\ B Cflags: '-I/A B' However 'pkgconf --cflags' prints them differently (in contrast to 'pkg-config --cflags'). In the first case: -I/A\ B Which means a single option '-I/A B' In the second case: -I/A B Which means 2 options: '-I/A' and 'B' This issue resides on libpkgconf library level as pkgconf_pkg_cflags() returns lists of different pkgconf_fragment_t objects as well. In both cases the list contains 1 element which data member contains -I/A\ B in the first case and -I/A B in the second case. It would be natural to expect that pkgconf_fragment_t object always contains unquoted value with unescaped space character, so in both cases it should be: -I/A B
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#139
There is no content yet.