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

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;