Skip to content

Commit

Permalink
Included encoding package for 850 code page in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorHofer committed Mar 21, 2017
1 parent fe8619d commit 4d5507d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -14,6 +14,7 @@
<PackageReference Include="OpenCover" Version="4.6.519" />
<PackageReference Include="PublishCoverity" Version="0.11.0" />
<PackageReference Include="ReportGenerator" Version="2.5.6" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions test/ICSharpCode.SharpZipLib.Tests/Zip/ZipTests.cs
Expand Up @@ -2040,6 +2040,8 @@ public void NameConversion()
[Category("Zip")]
public void UnicodeNameConversion()
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

ZipConstants.DefaultCodePage = 850;
string sample = "Hello world";

Expand Down

0 comments on commit 4d5507d

Please sign in to comment.