vitaly-zdanevich added a comment.

  Looks like I have a related problem: my uploaded PDFs lost the trailing 
`0x0d` (that is `\r`). Uploaded them with Pywikibot 10.7.4
  
  For my uploaded PDFs, Commons file size is exactly local size minus 1 byte.
  
  Commons SHA-1 equals SHA-1 of my local file with the last byte removed.
  
  The missing last byte is always `0x0d` (`\r`).
  
  Example:
  
  Kavkaz_1909_N47.pdf 
<https://commons.wikimedia.org/wiki/File:Kavkaz_1909_N47.pdf>
  
  - local size: 29165766
  - commons size: 29165765
  - local sha1: 0535a19f2894f826781d3a1372bddb8e88650f57
  - commons sha1: 98ee9db1d5fe1072114d644d7e9d729690d014ca
  - sha1(local[:-1]): 98ee9db1d5fe1072114d644d7e9d729690d014ca

TASK DETAIL
  https://phabricator.wikimedia.org/T132676

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to