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.
This commit is contained in:
Eric Fikus 2013-07-22 11:26:22 -07:00
Родитель 704e348e64
Коммит 1aa4c425f5
1 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -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";
}
}