You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear Pootle team
I'm facing an issue with the zip file of project language generated from Pootle 2.7.3b1, that I would like to contrast with you.
It looks like the zip version generated from 2.7.3b1 is 2.0, whereas in Pootle 2.5.x the zip version is 3.0.
Running zipinfo on the downloaded zip file,you see the version on each of its components.
This is zipinfo output from 2.7.3b1
?rw------- 2.0 unx 310672 b- stor 16-Feb-16 14:07 es_ES.po
Which actually should be something like .. the following, coming from a Pootle server 2.5.x
The file mode bits are wrong in 2.7.3, as well as the file type is wrongly set as binary "b", when it should be "t", as it's a gettext po file . Again, in 2.5.x works fine.
unzip / gzip extracts the contents ok, but not the file mode bits. When using bsdtar-libarchive (3.1.2), the extracted files po files can't be opened, since they are in binary format.
I've been discussing this today at the IRC (thanks dwaynebailey !). Seems like Pootle started using the python native zipfile module. I'll look into the methods on how it's currently creating the file.
In the meantime, if anyone can reproduce this, please let me know.
Bests,
Luis
Can anyone do a zipinfo on the exported project file from 2.7.3b1 (or 2.7.x ) ?
The text was updated successfully, but these errors were encountered:
I have also included the compress_type = ZIP_DEFLATED to writestr, which reduces the size of the export file significantly. Today there is no compression.
Probably we could replace zip by tar.gz , avoiding all the issues related to the file atributes (mode bits, creation dates ... ) .
I have created a couple of methods to export and download translation projects in a tar.gz format. I find the tar.gz format more flexible than zip. I'll be happy to share it if you want.
Dear Pootle team
I'm facing an issue with the zip file of project language generated from Pootle 2.7.3b1, that I would like to contrast with you.
It looks like the zip version generated from 2.7.3b1 is 2.0, whereas in Pootle 2.5.x the zip version is 3.0.
Running zipinfo on the downloaded zip file,you see the version on each of its components.
This is zipinfo output from 2.7.3b1
Which actually should be something like .. the following, coming from a Pootle server 2.5.x
The file mode bits are wrong in 2.7.3, as well as the file type is wrongly set as binary "b", when it should be "t", as it's a gettext po file . Again, in 2.5.x works fine.
unzip / gzip extracts the contents ok, but not the file mode bits. When using bsdtar-libarchive (3.1.2), the extracted files po files can't be opened, since they are in binary format.
I've been discussing this today at the IRC (thanks dwaynebailey !). Seems like Pootle started using the python native zipfile module. I'll look into the methods on how it's currently creating the file.
In the meantime, if anyone can reproduce this, please let me know.
Bests,
Luis
Can anyone do a zipinfo on the exported project file from 2.7.3b1 (or 2.7.x ) ?
The text was updated successfully, but these errors were encountered: