Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On Wed, 2012-06-13 at 10:35 +0200, Stephan Bergmann wrote:
On 06/12/2012 07:48 PM, Petr Mladek wrote:
commit 2e353b8daadc588b02fe7c7df5b7f185187e9d58
Author: Petr Mladek<pmladek@suse.cz>
Date:   Tue Jun 12 19:46:42 2012 +0200

     lo-commit-stat: avoid problems whit '%' in the commit message

     Change-Id: Ia10bac649cc078f6ef39002d280dcff7e5d0b06d

diff --git a/bin/lo-commit-stat b/bin/lo-commit-stat
index 310548e..1a8e6bb 100755
--- a/bin/lo-commit-stat
+++ b/bin/lo-commit-stat
@@ -80,6 +80,9 @@ sub standardize_summary($)
          my $first_char = lc($1);
          $line =~ s/^./$first_char/;
      }
+    # print does not like 0% or so
+    $line =~ s/%/%%/g;
+

      # FIXME: remove do at the end of line
      #        remove bug numbers

lo-commit-stat should better generally use print instead of printf with 
potentially improper format strings, right?

Ah, shame on me. The C-language is deep in my head.

Stefan, thanks for explaining the mystery.
Also thanks Thorsten for fixing it faster than me.

Best Regards,
Petr


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.