-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed TextSerializer not using invariant cultur during serialization ( …
…fixes #170)
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## New features | ||
|
||
- World.SetMaxCapacity can now be called multiple times for the same component type (#149) | ||
- World.SetMaxCapacity can now be called multiple times for the same component type (#149) | ||
|
||
## Bug fixes | ||
|
||
- fixed TextSerializer not using invariant cultur during serialization (#170 thanks to @Helco) |
16 changes: 16 additions & 0 deletions
16
source/DefaultEcs/Internal/Serialization/TextSerializer/InvariantCultureStreamWriter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Globalization; | ||
using System.IO; | ||
using System.Text; | ||
|
||
namespace DefaultEcs.Internal.Serialization.TextSerializer | ||
{ | ||
internal sealed class InvariantCultureStreamWriter : StreamWriter | ||
{ | ||
public InvariantCultureStreamWriter(Stream stream, Encoding encoding, int bufferSize, bool leaveOpen) | ||
: base(stream, encoding, bufferSize, leaveOpen) | ||
{ } | ||
|
||
public override IFormatProvider FormatProvider => CultureInfo.InvariantCulture; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters