aboutsummaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-06-13 09:03:10 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-06-13 09:03:10 +0000
commitca61aa0c12be9240881108e72bc6c3e928924f1c (patch)
tree4314842b8745346f673f7793f5f3ba54ae3a0fca /src/base
parentb43fa37fc73a2d8523d1ca0437157cfc18ca906d (diff)
downloadusdx-ca61aa0c12be9240881108e72bc6c3e928924f1c.tar.gz
usdx-ca61aa0c12be9240881108e72bc6c3e928924f1c.tar.xz
usdx-ca61aa0c12be9240881108e72bc6c3e928924f1c.zip
do not save "auto" encoding tag
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2510 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base')
-rw-r--r--src/base/UFiles.pas4
1 files changed, 3 insertions, 1 deletions
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));