svn commit: r328242 - head/lib/libregex

Hans Petter Selasky hps at selasky.org
Thu Apr 16 08:58:54 UTC 2020


Hi Kyle,

There is a sed regression between older 12.1 and 13-current likely 
caused by libregex changes. I will try to bisect:

Can you have a look at this:

Expected result:

> printf "#define MEDIA_BUS_FMT_SRGGB16_1X16\t\t\t0x3020\n" | sed -e 's/.*FMT_//; s/\t.*//; s/.*/{ \"&\", MEDIA_BUS_FMT_& },/;'
> { "SRGGB16_1X16", MEDIA_BUS_FMT_SRGGB16_1X16 },

Bad result:

> printf "#define MEDIA_BUS_FMT_SRGGB16_1X16\t\t\t0x3020\n" | sed -e 's/.*FMT_//; s/\t.*//; s/.*/{ \"&\", MEDIA_BUS_FMT_& },/;'
> { "SRGGB16_1X16			0x3020", MEDIA_BUS_FMT_SRGGB16_1X16			0x3020 },

A little further inspection shows \t does not work like expected in:

s/\t.*//;

Trying to quickly bisect.

--HPS


More information about the svn-src-all mailing list