Set default Culture to en-GB to ensure floats are serialised correctly across all languages.
Without this, floats are serialised in e.g. German to 2,3 instead of 2.3, thus breaking the generated SVG. Thanks to Johanna Wehner for reporting. Co-authored-by: Johanna Wehner <superjohannaa@gmail.com>
This commit is contained in:
parent
28e6422e9b
commit
9d2590e7c8
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
using Melanchall.DryWetMidi.Common;
|
using Melanchall.DryWetMidi.Common;
|
||||||
|
|
||||||
using SBRL.Utilities;
|
using SBRL.Utilities;
|
||||||
|
@ -10,6 +12,7 @@ namespace MusicBoxConverter
|
||||||
{
|
{
|
||||||
public static int Main(string[] args)
|
public static int Main(string[] args)
|
||||||
{
|
{
|
||||||
|
CultureInfo.CurrentCulture = new CultureInfo("en-GB", false);
|
||||||
string inputFilename = "";
|
string inputFilename = "";
|
||||||
string outputFilename = "";
|
string outputFilename = "";
|
||||||
bool debug = false;
|
bool debug = false;
|
||||||
|
|
Loading…
Reference in a new issue