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:
Starbeamrainbowlabs 2023-12-05 20:32:11 +00:00
parent 28e6422e9b
commit 9d2590e7c8
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
using System;
using System.Reflection;
using System.Globalization;
using Melanchall.DryWetMidi.Common;
using SBRL.Utilities;
@ -10,6 +12,7 @@ namespace MusicBoxConverter
{
public static int Main(string[] args)
{
CultureInfo.CurrentCulture = new CultureInfo("en-GB", false);
string inputFilename = "";
string outputFilename = "";
bool debug = false;