Skip to content

Commit

Permalink
Fix bug getting ANSI encoding
Browse files Browse the repository at this point in the history
Added the CORE preprocessor symbol to the conditional compilation for getting the ANSI Encoding.
  • Loading branch information
sedders123 committed Jun 20, 2018
1 parent 7d09e32 commit 0308d8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PdfSharp/Pdf.Internal/PdfEncoders.cs
Expand Up @@ -68,7 +68,7 @@ public static Encoding WinAnsiEncoding
{
if (_winAnsiEncoding == null)
{
#if !SILVERLIGHT && !NETFX_CORE && !UWP
#if !SILVERLIGHT && !NETFX_CORE && !UWP && !CORE
// Use .net encoder if available.
_winAnsiEncoding = Encoding.GetEncoding(1252);
#else
Expand Down Expand Up @@ -464,7 +464,7 @@ public static byte[] FormatStringLiteral(byte[] bytes, bool unicode, bool prefix
}

/// <summary>
/// Converts WinAnsi to DocEncode characters. Incomplete, just maps € and some other characters.
/// Converts WinAnsi to DocEncode characters. Incomplete, just maps € and some other characters.
/// </summary>
static byte[] docencode_______ = new byte[256]
{
Expand Down

0 comments on commit 0308d8c

Please sign in to comment.