On Wed, 2009-08-19 at 15:56 -0500, Gunnar Wolf wrote: > Using extended (UTF8) characters on the same line (entry?) as a > parenthesis results in dch adding an empty line with just a spurious > closing parenthesis: > > 0 (master) gw...@mosca『4』~/cvs/cherokee$ dch -a 'foo → bar (no changes)' [...] > + * foo → bar (no changes) > + )
dch isn't clever enough to do anything like parenthesis balancing. :-) The problem manifests itself regardless of the final character. This looks like a variant on an issue we'd solved in the past for non-ASCII characters, namely that Perl's format functions assume that characters are 7-bit, hence this incredibly hacky (but generally working) section of dch, albeit with a slightly broken comment: # Work around the fact that write() with formats # seems to assume that character == byte # See http://rt.perl.org/rt3/Public/Bug/Display.html?id=33832 # and Debian bug #473769 my $count = () = $CHGLINE =~ /[^\x00-\x7F]/mg; $CHGLINE .= " " x $count; Regards, Adam -- To unsubscribe, send mail to [email protected].
