From 0061de6b2ec445ce6a4e25b479cb85bb4d5f5b34 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 16 Sep 2020 15:57:22 -0700 Subject: [PATCH] Fix cuesheet write-to-stream --- DICUI.Library/CueSheets/CueSheet.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DICUI.Library/CueSheets/CueSheet.cs b/DICUI.Library/CueSheets/CueSheet.cs index dabda876..6eae8101 100644 --- a/DICUI.Library/CueSheets/CueSheet.cs +++ b/DICUI.Library/CueSheets/CueSheet.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Text; using System.Text.RegularExpressions; /// @@ -173,7 +174,7 @@ namespace DICUI.CueSheets if (this.Files == null || this.Files.Count == 0) return; // TODO: Make this throw an exception - using (var sw = new StreamWriter(stream)) + using (var sw = new StreamWriter(stream, Encoding.ASCII, 1024, true)) { if (!string.IsNullOrEmpty(this.Catalog)) sw.WriteLine($"CATALOG {this.Catalog}");