Information.UserDomainName='WIN-E5K8TM30719'| Information.Is64BitProcess='True'|Information.IsInteractive='True'| Information.Is64BitOperatingSystem='True'| Information.FullName='choco, Version=0.10.16.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'| Information.ChocolateyProductVersion='0.10.16-beta'| Information.PlatformName='Windows Server 2012 R2'| OverrideArguments='False'|NotSilent='False'|ĪpplyPackageParametersToDependencies='False'|ĪpplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|ĪllowMultipleVersions='False'|AllowDowngrade='True'|įorceDependencies='False'|Information.PlatformType='Windows'| PackageNames='vim'|Prerelease='False'|ForceX86='False'| PromptForConfirmation='False'|AcceptLicense='True'|ĪllowUnofficialBuild='False'|Input='vim'|Version=''|ĪllVersions='False'|SkipPackageInstallProvider='False'| UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'| SourceType='normal'|Debug='True'|Verbose='True'|Trace='False'|įorce='True'|Noop='False'|HelpRequested='False'| 01:00:46,768 2952 - Configuration: CommandName='install'|ĬacheLocation='C:\Users\Administrator\AppData\Local\Temp\chocolatey'|ĬommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'| NOTE: Hiding sensitive configuration data! Please double and tripleĬheck to be sure no sensitive data is shown, especially if copying 01:00:46,753 2952 - The source 'c:\cached-packages ' evaluated to a 'normal' source type 2 success(es), 0 warning(s), and 0 error(s). 01:00:46,753 2952 - Pending Windows Package Installer SysWow64 = Checked 01:00:46,753 2952 - Pending Windows Package Installer = Checked 01:00:46,737 2952 - Pending File Rename Operations = Ignored
01:00:46,737 2952 - Pending Windows Auto Update = Checked 01:00:46,737 2952 - Pending Component Based Servicing = Checked
01:00:46,737 2952 - Package Exit Code / Exit On Reboot = Checked 01:00:46,737 2952 - Global Configuration Validation Checks: zipinfo is distributed with Info-ZIP's UnZip, so you might as well have just used unzip.01:00:46,722 2952 - Performing validation checks.
Ziptool renamed.zip rename $index "$name"
One option is to use external utilities to change the zip first: #!/bin/bash Depending on the current locale, it might create the file using that exact name (the raw bytes 84 8a 8f), or worse, treat them as unicode points to be expanded to UTF-8 first ( c2 84 c2 8a c2 8f).
unzip knows about this header, and uses the UTF-8 name, ignoring the CP1251 one.ħz doesn't do anything with this "extra field", and only uses the CP1251 one. The "extra" field uses an Info-zip extension (see section 4.6.9 of the Zip Specification v 6.3.4 ) to store the UTF-8 filename.
However, for the archive in the question, the "filename" field contains the CP1251 encoding of "ДКП.doc" ( 84 8a 8f 2e 64 6f 63). (This helped for a zip created by IZArc on Win7, using two of your example filenames.) hexdump of start of archive ( od -tx1z -Ax):Ġ00000 50 4b 03 04 14 00 00 00 00 00 81 54 1a 49 7e 35 on the encoding used to create the zip file, you might be able to prevent unwanted translations by temporarily setting the locale to "C": LC_ALL=C 7z x $archive.When trying to guess charset via 7z -scsCP1251 l 26-08-2016_10-18-14.zipħz gives warning: Unsupported charset: cp1251