From 1aa4c425f50cf2cad90bffc048e5576e6d707c81 Mon Sep 17 00:00:00 2001 From: Eric Fikus Date: Mon, 22 Jul 2013 11:26:22 -0700 Subject: [PATCH] StreamGenerator: Fix output encoding Re-applies https://github.com/rdio/vernacular/commit/15e769b267 to fix output encoding. In particular this fixes generating UTF-16 strings files for iOS. --- Vernacular.Tool/Vernacular.Generators/StreamGenerator.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Vernacular.Tool/Vernacular.Generators/StreamGenerator.cs b/Vernacular.Tool/Vernacular.Generators/StreamGenerator.cs index bc012c1..f9a979b 100644 --- a/Vernacular.Tool/Vernacular.Generators/StreamGenerator.cs +++ b/Vernacular.Tool/Vernacular.Generators/StreamGenerator.cs @@ -59,14 +59,8 @@ namespace Vernacular.Generators protected sealed class GeneratorWriter : StreamWriter { - private Encoding encoding; - public override Encoding Encoding { - get { return encoding; } - } - public GeneratorWriter (Stream stream, Encoding encoding) - : base (stream) { - this.encoding = encoding; + : base (stream, encoding) { NewLine = "\n"; } }