Different outputs for space-containing path #139
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
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