You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Test][Category("Zip")][Category("CreatesTempFile")]publicvoidCommentsOnEntriesSupportUnicode(){stringtempFile=GetTempFilePath();Assert.IsNotNull(tempFile,"No permission to execute this test?");tempFile=Path.Combine(tempFile,"SharpZipTest.Zip");if(File.Exists(tempFile)){File.Delete(tempFile);}using(ZipFiletestFile=ZipFile.Create(tempFile)){testFile.BeginUpdate();testFile.Add(newStringMemoryDataSource("Aha"),newZipEntry("Aha"){Comment="åäö",IsUnicodeText=true});testFile.CommitUpdate();Assert.That(testFile,Does.PassTestArchive());}using(ZipFiletestFile=newZipFile(tempFile)){Assert.AreEqual("åäö",testFile.First().Comment);}}
Expected behavior
comments should be åäö but is ???
Operating System
No response
Framework Version
No response
Tags
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Setting a comment on an entry with special characters is not respected when reading back the archive.
Maybe this is the issue:
SharpZipLib/src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs
Line 2437 in ff2d7c3
Reproduction Code
No response
Steps to reproduce
Expected behavior
comments should be
åäö
but is???
Operating System
No response
Framework Version
No response
Tags
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: