24
1
Fork 0

Change archive bit flags to specify use of UTF-8 filenames

Related to https://gitlab.com/timvisee/send/-/issues/10#note_549739569

Suggested in https://github.com/mozilla/send/issues/1432#issue-545383226
This commit is contained in:
timvisee 2021-04-12 16:04:32 +02:00
parent fa716a7da6
commit b880516edf
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class File {
const v = new DataView(h);
v.setUint32(0, 0x04034b50, true); // sig
v.setUint16(4, 20, true); // version
v.setUint16(6, 8, true); // bit flags (8 = use data descriptor)
v.setUint16(6, 2056, true); // bit flags (2056 = use data descriptor(8) + utf8-encoded(2048))
v.setUint16(8, 0, true); // compression
v.setUint16(10, this.dateTime.time, true); // modified time
v.setUint16(12, this.dateTime.date, true); // modified date