diff options
author | sr55 <[email protected]> | 2007-09-22 15:31:53 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2007-09-22 15:31:53 +0000 |
commit | 7cd3e9bcc2a79500b60d33973414acbc7a1b57c2 (patch) | |
tree | 08842e9f7f24bfccb62d2ad545c3503b33983132 /win/C#/Functions/CLI.cs | |
parent | 7401a94cb655fe576dbca898b42bcd265463db7d (diff) |
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
Diffstat (limited to 'win/C#/Functions/CLI.cs')
-rw-r--r-- | win/C#/Functions/CLI.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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
{
+ /// <summary>
+ /// CLI output is based on en-US locale,
+ /// we use this CultureInfo as IFormatProvider to *.Parse() calls
+ /// </summary>
+ 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)
|