pkgconf / pkgconf

package compiler and linker metadata toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edge case in single quote escaping

lu-zero opened this issue · comments

Here the testcase

escape.pc

Name: Escape
Version: 4.2.0
Description: Escape utility library
Libs: -Llink\ path\ with\ spaces
Cflags: -DA=\"escaped\ string\'\ literal\"

Here the different handling:

pkg-config escape --cflags

-DA=\"escaped\ string\'\ literal\"

pkgconf escape --cflags

-DA=\"escaped\ string\\\'\ literal\"

Fixed in pending 1.9.5 release, thanks!