From d424eb44ed7f60821ccc7581cfe41fdae209dcbb Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 15 May 2016 23:14:59 +0100 Subject: [PATCH] fix #3587: convert CP1252 to UTF8 when importing highscores --- src/scenario_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scenario_list.c b/src/scenario_list.c index 7433926675..68d6c1ff23 100644 --- a/src/scenario_list.c +++ b/src/scenario_list.c @@ -379,7 +379,7 @@ static bool scenario_scores_legacy_load(const utf8 *path) // Set new highscore if (highscore != NULL) { highscore->fileName = _strdup(scBasic.path); - highscore->name = _strdup(scBasic.completed_by); + highscore->name = win1252_to_utf8_alloc(scBasic.completed_by); highscore->company_value = (money32)scBasic.company_value; highscore->timestamp = DATETIME64_MIN; highscoresDirty = true;