GNOME Bugzilla – Bug 508483
wrong c-format "% 5d"?
Last modified: 2009-11-09 07:56:08 UTC
Please describe the problem: In the POT file, appears next plural string: #: ../baobab/src/baobab.c:318 #, c-format msgid "% 5d item" msgid_plural "% 5d items" msgstr[0] "" msgstr[1] "" I guest it should be something like msgid "%d item" msgid_plural "%d items" Where there aren't space between '%' char and 'd' char. So, could you fix them if they're wrong? Thanks Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
I think that the '5' is intentional... it means how the number should be formatted (see man 3 printf for details). However the space looks wrong the format should probably be %5d: can someone test it?
using bash shell, I make a test with "% 5d" $ printf "% 5d" 123456 123456 So it puts a space at the begining of the line, but it doesn't show 5 digits, it shows all digits. Printf uses .2 to show the first 2 decimals in float point values, but it does not affect to integers. Next test is without space: $ printf "%5d" 123456 123456 Thanks and best regards
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.