summaryrefslogtreecommitdiffstats
path: root/win/C#/Parsing/Parser.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-09-22 15:31:53 +0000
committersr55 <[email protected]>2007-09-22 15:31:53 +0000
commit7cd3e9bcc2a79500b60d33973414acbc7a1b57c2 (patch)
tree08842e9f7f24bfccb62d2ad545c3503b33983132 /win/C#/Parsing/Parser.cs
parent7401a94cb655fe576dbca898b42bcd265463db7d (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#/Parsing/Parser.cs')
-rw-r--r--win/C#/Parsing/Parser.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/C#/Parsing/Parser.cs b/win/C#/Parsing/Parser.cs
index ea2ae57fd..b3edc89d9 100644
--- a/win/C#/Parsing/Parser.cs
+++ b/win/C#/Parsing/Parser.cs
@@ -98,9 +98,9 @@ namespace Handbrake.Parsing
{
int currentTask = int.Parse(m.Groups[1].Value);
int totalTasks = int.Parse(m.Groups[2].Value);
- float percent = float.Parse(m.Groups[3].Value);
- float currentFps = m.Groups[5].Value == string.Empty ? 0.0F : float.Parse(m.Groups[5].Value);
- float avgFps = m.Groups[6].Value == string.Empty ? 0.0F : float.Parse(m.Groups[6].Value);
+ float percent = float.Parse(m.Groups[3].Value, Functions.CLI.Culture);
+ float currentFps = m.Groups[5].Value == string.Empty ? 0.0F : float.Parse(m.Groups[5].Value, Functions.CLI.Culture);
+ float avgFps = m.Groups[6].Value == string.Empty ? 0.0F : float.Parse(m.Groups[6].Value, Functions.CLI.Culture);
TimeSpan remaining = TimeSpan.Zero;
if (m.Groups[7].Value != string.Empty)
{