From 7cd3e9bcc2a79500b60d33973414acbc7a1b57c2 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 22 Sep 2007 15:31:53 +0000 Subject: WinGUI: - Fix for Non english language systems that use floats with a , instead of . Thanks go to loshadi for providing this better fix for the issue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@979 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/CLI.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'win/C#/Functions/CLI.cs') diff --git a/win/C#/Functions/CLI.cs b/win/C#/Functions/CLI.cs index 85d1c5569..c1502a462 100644 --- a/win/C#/Functions/CLI.cs +++ b/win/C#/Functions/CLI.cs @@ -3,12 +3,20 @@ using System.Collections.Generic; using System.Threading; using System.Diagnostics; using System.Windows.Forms; +using System.Globalization; namespace Handbrake.Functions { class CLI { + /// + /// CLI output is based on en-US locale, + /// we use this CultureInfo as IFormatProvider to *.Parse() calls + /// + static readonly public CultureInfo Culture = new CultureInfo("en-US", false); + + Process hbProc = new Process(); public Process runCli(object s, string query, bool stderr, bool stdout, bool useShellExec, bool noWindow) -- cgit v1.2.3