Browse Source

Added a flag in ZipFile to make sure the filename is treated as UTF8.

tags/2021-05-28
jules 12 years ago
parent
commit
c7341b1e2c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/zip/juce_ZipFile.cpp

+ 1
- 1
modules/juce_core/zip/juce_ZipFile.cpp View File

@@ -541,7 +541,7 @@ private:
void writeFlagsAndSizes (OutputStream& target) const
{
target.writeShort (10); // version needed
target.writeShort (0); // flags
target.writeShort ((short) (1 << 11)); // this flag indicates UTF-8 filename encoding
target.writeShort (compressionLevel > 0 ? (short) 8 : (short) 0);
writeTimeAndDate (target, fileTime);
target.writeInt ((int) checksum);


Loading…
Cancel
Save