Skip to content

Commit

Permalink
never write UTF8-BOM at start of file
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNailDev committed Jan 20, 2025
1 parent e39d42f commit a939c1b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/base/UFiles.pas
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,6 @@ function SaveSong(const Song: TSong; const Tracks: array of TLines; const Name:
try
SongFile := TMemTextFileStream.Create(Name, fmCreate);
try
// to-do: should we really write the BOM?
// it causes problems w/ older versions
// e.g. usdx 1.0.1a or ultrastar < 0.7.0
if (Song.Encoding = encUTF8) then
SongFile.WriteString(UTF8_BOM);

if Song.FormatVersion.MinVersion(1,0,0,true) then
begin
// Only save version if it is at least 1.0.0
Expand Down

0 comments on commit a939c1b

Please sign in to comment.