File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/Files.App/Data/Models Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -158,10 +158,12 @@ public async Task<bool> RunCreationAsync()
158
158
} ;
159
159
160
160
compressor . CustomParameters . Add ( "mt" , CPUThreads . ToString ( ) ) ;
161
- //Use UTF-8 encoding.
162
- //References: 7-zip chm --> Command Line Version --> Switches
163
- //--> -m --> cu=[off | on].
164
- compressor . CustomParameters . Add ( "cu" , "on" ) ;
161
+ // Use UTF-8 encoding.
162
+ // References: 7-zip chm --> Command Line Version --> Switches
163
+ // --> -m --> cu=[off | on].
164
+ // Don't add "cu" parameter for 7zip files, see https://github.com/files-community/Files/issues/17257
165
+ if ( FileFormat != ArchiveFormats . SevenZip )
166
+ compressor . CustomParameters . Add ( "cu" , "on" ) ;
165
167
166
168
compressor . Compressing += Compressor_Compressing ;
167
169
compressor . FileCompressionStarted += Compressor_FileCompressionStarted ;
You can’t perform that action at this time.
0 commit comments