Changes On Branch utf8-in-zip
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch utf8-in-zip Excluding Merge-Ins

This is equivalent to a diff from ee1ff73a9e to ceb11b0787

2012-12-04
00:17
Change the encoding on the ZIP archive generator so that it preserves UTF8 filenames. check-in: 3ff5ca0573 user: drh tags: trunk
2012-12-03
22:03
Set bit 11 in the "general purpose bit flag" to 1. This indicates (according to the pkware documentation) that all filenames are in utf-8, in stead of IBM-437. This should fix ticket [838bde7990d8e190957cbfe7f15c77322dc54e57] Closed-Leaf check-in: ceb11b0787 user: jan.nijtmans tags: utf8-in-zip
20:48
missing parameter type check-in: ee1ff73a9e user: jan.nijtmans tags: trunk
2012-12-01
20:17
Add mimetype mappings for .docx, .pptx, and .xlsx. check-in: 4e23c42f7e user: drh tags: trunk

Changes to src/zip.c.

   150    150       iMethod = 0;
   151    151       iMode = 040755;
   152    152     }
   153    153     nameLen = strlen(zName);
   154    154     memset(zHdr, 0, sizeof(zHdr));
   155    155     put32(&zHdr[0], 0x04034b50);
   156    156     put16(&zHdr[4], 0x000a);
   157         -  put16(&zHdr[6], 0);
          157  +  put16(&zHdr[6], 0x0800);
   158    158     put16(&zHdr[8], iMethod);
   159    159     put16(&zHdr[10], dosTime);
   160    160     put16(&zHdr[12], dosDate);
   161    161     put16(&zHdr[26], nameLen);
   162    162     put16(&zHdr[28], 13);
   163    163     
   164    164     put16(&zExTime[0], 0x5455);
................................................................................
   215    215     
   216    216     /* Make an entry in the tables of contents
   217    217     */
   218    218     memset(zBuf, 0, sizeof(zBuf));
   219    219     put32(&zBuf[0], 0x02014b50);
   220    220     put16(&zBuf[4], 0x0317);
   221    221     put16(&zBuf[6], 0x000a);
   222         -  put16(&zBuf[8], 0);
          222  +  put16(&zBuf[8], 0x0800);
   223    223     put16(&zBuf[10], iMethod);
   224    224     put16(&zBuf[12], dosTime);
   225    225     put16(&zBuf[14], dosDate);
   226    226     put32(&zBuf[16], iCRC);
   227    227     put32(&zBuf[20], nByteCompr);
   228    228     put32(&zBuf[24], nByte);
   229    229     put16(&zBuf[28], nameLen);