[profile_templates] minor issue + patch

Steven, I was playing around w/ the profile_templates tool on my Ubuntu box (Jaunty Jackelope - 9.04), and wasn't getting any results. After a little investigation, I discovered that the regex that postprocess.cpp uses for the enter_message wasn't matching the warning that my gcc compiler (4.3.3) was spitting out. Turns out that the regex is looking for a single char here: (.*): warning: .int -----------------^ But I'm getting a unicode E28098 (left single quotation mark), which is 3 chars, hence the failure to match. Being somewhat content w/ my terminal settings (and lazy to boot), I just modified the regex to match .+int instead of .int, and it *seems* to work fine. I think I have a sandbox account, and can commit the attached patch if you like the fix. Jon

AMDG Jonathan Franklin wrote:
I was playing around w/ the profile_templates tool on my Ubuntu box (Jaunty Jackelope - 9.04), and wasn't getting any results. After a little investigation, I discovered that the regex that postprocess.cpp uses for the enter_message wasn't matching the warning that my gcc compiler (4.3.3) was spitting out.
Turns out that the regex is looking for a single char here: (.*): warning: .int -----------------^
But I'm getting a unicode E28098 (left single quotation mark), which is 3 chars, hence the failure to match. Being somewhat content w/ my terminal settings (and lazy to boot), I just modified the regex to match .+int instead of .int, and it *seems* to work fine.
I think I have a sandbox account, and can commit the attached patch if you like the fix.
Please do. Thanks. In Christ, Steven Watanabe
participants (2)
-
Jonathan Franklin
-
Steven Watanabe