Hardware/CPU/CPUGroup.cs
changeset 166 fa9dfbfc4145
parent 165 813d8bc3192f
child 167 b7cc9d09aefe
     1.1 --- a/Hardware/CPU/CPUGroup.cs	Sun Aug 08 13:57:26 2010 +0000
     1.2 +++ b/Hardware/CPU/CPUGroup.cs	Thu Aug 12 20:53:27 2010 +0000
     1.3 @@ -37,6 +37,7 @@
     1.4  
     1.5  using System;
     1.6  using System.Collections.Generic;
     1.7 +using System.Globalization;
     1.8  using System.Diagnostics;
     1.9  using System.Text;
    1.10  
    1.11 @@ -153,10 +154,10 @@
    1.12      private void AppendCpuidData(StringBuilder r, uint[,] data, uint offset) {
    1.13        for (int i = 0; i < data.GetLength(0); i++) {
    1.14          r.Append(" ");
    1.15 -        r.Append((i + offset).ToString("X8"));
    1.16 +        r.Append((i + offset).ToString("X8", CultureInfo.InvariantCulture));
    1.17          for (int j = 0; j < 4; j++) {
    1.18            r.Append("  ");
    1.19 -          r.Append(data[i, j].ToString("X8"));
    1.20 +          r.Append(data[i, j].ToString("X8", CultureInfo.InvariantCulture));
    1.21          }
    1.22          r.AppendLine();
    1.23        }
    1.24 @@ -180,11 +181,14 @@
    1.25          r.AppendFormat("Processor Brand: {0}{1}", threads[i][0][0].BrandString,
    1.26            Environment.NewLine);
    1.27          r.AppendFormat("Family: 0x{0}{1}", 
    1.28 -          threads[i][0][0].Family.ToString("X"), Environment.NewLine);
    1.29 -        r.AppendFormat("Model: 0x{0}{1}", 
    1.30 -          threads[i][0][0].Model.ToString("X"), Environment.NewLine);
    1.31 -        r.AppendFormat("Stepping: 0x{0}{1}", 
    1.32 -          threads[i][0][0].Stepping.ToString("X"), Environment.NewLine);
    1.33 +          threads[i][0][0].Family.ToString("X", CultureInfo.InvariantCulture), 
    1.34 +          Environment.NewLine);
    1.35 +        r.AppendFormat("Model: 0x{0}{1}",
    1.36 +          threads[i][0][0].Model.ToString("X", CultureInfo.InvariantCulture), 
    1.37 +          Environment.NewLine);
    1.38 +        r.AppendFormat("Stepping: 0x{0}{1}",
    1.39 +          threads[i][0][0].Stepping.ToString("X", CultureInfo.InvariantCulture), 
    1.40 +          Environment.NewLine);
    1.41          r.AppendLine();
    1.42  
    1.43          r.AppendLine("CPUID Return Values");