From: http://smcv.pseudorandom.co.uk/ Date: Fri, 21 Feb 2014 17:12:17 +0000 (-0400) Subject: new bug, new branch X-Git-Tag: debian/3.20140227~12^2~9 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/c1c903c54c605316aeaeebd2e8279964baadbe0b?hp=819510caa4ddd4c08aa145b1b515e0390c279735 new bug, new branch --- diff --git a/doc/bugs/error_handlers_with_gettext_can_clobber___36____64__.mdwn b/doc/bugs/error_handlers_with_gettext_can_clobber___36____64__.mdwn new file mode 100644 index 000000000..035346284 --- /dev/null +++ b/doc/bugs/error_handlers_with_gettext_can_clobber___36____64__.mdwn @@ -0,0 +1,22 @@ +[[!template id=gitbranch name=smcv/ready/careful-eval author="[[smcv]]"]] +[[!tag patch]] + +As noted in the Try::Tiny man page, eval/$@ can be quite awkward in +corner cases, because $@ has the same properties and problems as C's +errno. While writing a regression test for definetemplate +in which it couldn't find an appropriate template, I received + + Error: failed to process template + deftmpl + +instead of the intended + + Error: failed to process template + deftmpl template deftmpl not + found + +which turned out to be because the "catch"-analogous block called +gettext before it used $@, and gettext can call define_gettext, +which uses eval. + +Fixed in my branch smcv/ready/careful-eval. --[[smcv]]