From ca61aa0c12be9240881108e72bc6c3e928924f1c Mon Sep 17 00:00:00 2001 From: tobigun Date: Sun, 13 Jun 2010 09:03:10 +0000 Subject: do not save "auto" encoding tag git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2510 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/base/UFiles.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/base/UFiles.pas b/src/base/UFiles.pas index 5a258e3e..1a7ca8f8 100644 --- a/src/base/UFiles.pas +++ b/src/base/UFiles.pas @@ -131,7 +131,9 @@ begin if (Song.Encoding = encUTF8) then SongFile.WriteString(UTF8_BOM); - SongFile.WriteLine('#ENCODING:' + EncodingName(Song.Encoding)); + // do not save "auto" encoding tag + if (Song.Encoding <> encAuto) then + SongFile.WriteLine('#ENCODING:' + EncodingName(Song.Encoding)); SongFile.WriteLine('#TITLE:' + EncodeToken(Song.Title)); SongFile.WriteLine('#ARTIST:' + EncodeToken(Song.Artist)); -- cgit v1.2.3