)]}'
{
  "commit": "012222e38cd0b48a3dabd10c9a3cf6b2c4c5befc",
  "tree": "11d7a8dc02d9c01c19367f68416d7e1efa5e96f2",
  "parents": [
    "4c44561d9f97331bb23f900f47a69305091f3ab3"
  ],
  "author": {
    "name": "Herbert Xu",
    "email": "herbert@gondor.apana.org.au",
    "time": "Fri Sep 26 22:16:26 2014 +0800"
  },
  "committer": {
    "name": "Herbert Xu",
    "email": "herbert@gondor.apana.org.au",
    "time": "Fri Sep 26 22:27:20 2014 +0800"
  },
  "message": "[MAN] Change characters for printf precision to bytes\n\nOn Sun, Mar 09, 2014 at 11:11:43AM +0000, Jeroen van Dijke wrote:\n\u003e \n\u003e There seems to be a bug in the dash man page, at least in 0.5.7. It reads:\n\u003e \n\u003e             Precision:\n\u003e                     An optional period, `.\u0027, followed by an optional digit string giving a precision which specifies the number of digits to appear after the decimal point, for e and f formats, or the maximum number of *characters* to be printed from a string (b and s for-\n\u003e                     mats); if the digit string is missing, the precision is treated as zero;\n\u003e \n\u003e dash behaves cuts to the number of bytes\n\u003e \n\u003e $ length\u003d10; printf \"%.${length}s\\n\" \"eeeeeeeeeeeeeeeeeeeeeeeee\"\n\u003e eeeeeeeeee\n\u003e $ length\u003d10; printf \"%.${length}s\\n\" \"ëëëëëëëëëëëëëëëëëëëëëëëëë”\n\u003e ëëëëë\n\u003e \n\u003e \n\u003e The  POSIX specification (2008) says:\n\u003e \n\u003e precision Gives the minimum number of digits to appear for the d, o, i, u, x, or X conversion specifiers (the field is padded with leading zeros), the number of digits to appear after the radix character for the e and f conversion specifiers, the maximum number of significant digits for the g conversion specifier; or the maximum number of *bytes* to be written from a string in the s conversion specifier. The precision shall take the form of a ( \u0027.\u0027 ) followed by a decimal digit string; a null digit string is treated as zero.\n\u003e \n\u003e So it seems to me that “characters” should be changed to “bytes”.\n\nIndeed and this patch makes that change.\n\nSigned-off-by: Herbert Xu \u003cherbert@gondor.apana.org.au\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7b67c0c61732158e3cad23f67f82cf57d08fc4dc",
      "old_mode": 33188,
      "old_path": "ChangeLog",
      "new_id": "6f27fd74dfa6dcf1ab35cd927d193adfad9350c9",
      "new_mode": 33188,
      "new_path": "ChangeLog"
    },
    {
      "type": "modify",
      "old_id": "6241a617cb85f6045af130b05e83c77c4b040588",
      "old_mode": 33188,
      "old_path": "src/dash.1",
      "new_id": "6ceb16a19491a0d74adf6b55cee8dc1dd30a6442",
      "new_mode": 33188,
      "new_path": "src/dash.1"
    }
  ]
}
