Просмотр исходного кода

ui: Fix timezone abbreviation since #3361 (#3430)

As title say
Mary 3 лет назад
Родитель
Сommit
0c66d71fe8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs

+ 2 - 2
Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs

@@ -15,7 +15,7 @@ using Ryujinx.HLE.Utilities;
 using System;
 using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
 using System.IO;
 using System.IO;
-
+using System.Text;
 using TimeZoneRuleBox = Ryujinx.Common.Memory.Box<Ryujinx.HLE.HOS.Services.Time.TimeZone.TimeZoneRule>;
 using TimeZoneRuleBox = Ryujinx.Common.Memory.Box<Ryujinx.HLE.HOS.Services.Time.TimeZone.TimeZoneRule>;
 
 
 namespace Ryujinx.HLE.HOS.Services.Time.TimeZone
 namespace Ryujinx.HLE.HOS.Services.Time.TimeZone
@@ -181,7 +181,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.TimeZone
                     var abbrStart = tzRule.Chars[ttInfo.AbbreviationListIndex..];
                     var abbrStart = tzRule.Chars[ttInfo.AbbreviationListIndex..];
                     int abbrEnd = abbrStart.IndexOf((byte)0);
                     int abbrEnd = abbrStart.IndexOf((byte)0);
 
 
-                    outList.Add((ttInfo.GmtOffset, locName, abbrStart[..abbrEnd].ToString()));
+                    outList.Add((ttInfo.GmtOffset, locName, Encoding.UTF8.GetString(abbrStart[..abbrEnd])));
                 }
                 }
             }
             }