Fix usage of culture local ToUpper causing incorrect display on Turkish machines

Closes #3098.
This commit is contained in:
Dean Herbert
2018-07-24 11:34:06 +02:00
parent 9dc55688d2
commit ab9340f4be
11 changed files with 26 additions and 15 deletions

View File

@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Extensions.IEnumerableExtensions;
@ -55,7 +56,7 @@ namespace osu.Game.Overlays.Notifications
set
{
title = value;
if (titleText != null) titleText.Text = title.ToUpper();
if (titleText != null) titleText.Text = title.ToUpper(CultureInfo.InvariantCulture);
}
}
@ -101,7 +102,7 @@ namespace osu.Game.Overlays.Notifications
{
titleText = new OsuSpriteText
{
Text = title.ToUpper(),
Text = title.ToUpper(CultureInfo.InvariantCulture),
Font = @"Exo2.0-Black",
},
countText = new OsuSpriteText
@ -154,7 +155,7 @@ namespace osu.Game.Overlays.Notifications
public string Text
{
get { return text.Text; }
set { text.Text = value.ToUpper(); }
set { text.Text = value.ToUpper(CultureInfo.InvariantCulture); }
}
}