Spodii / netgore

Cross platform online rpg engine using C# and SFML
http://www.netgore.com/
40 stars 16 forks source link

"stat_ınt" not found in the character table #318

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Demogame/Stats/StatTypeExtensions.cs
Line 27

this line;
return "stat_" + statType.ToString().ToLower();

should be like this;
return "stat_" + statType.ToString().ToLowerInvariant();

otherwise the compiler will throw an error like "stat_ınt" not found in the 
character table, because converting "Int" to lowercase on a turkish pc means 
"ınt" not "int"

Refer to "Turkish I" problem on
http://www.moserware.com/2008/02/does-your-code-pass-turkey-test.html

Original issue reported on code.google.com by semih.te...@gmail.com on 11 Nov 2011 at 6:36

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by aphro.cag on 5 Dec 2011 at 5:30