CSharpShellApp
CSharpShellApp copied to clipboard
Your program crashing when try to open file that contains accented letters(like á) in string
https://user-images.githubusercontent.com/51722783/222695984-aafa9b6c-0ed1-4b6b-bb9d-dd8295a0e621.mp4
This is the code:
using System; using System.Linq; using System.Collections.Generic; using System.Net;
namespace CSharp_Shel
{
[OnLang("hu")]
public class HungarianHttpStatusCodeErrorDisplayFormatter : IHttpStatusCodeErrorDisplayFormatter
{
public string Format(HttpStatusCode statusCode,string method,string path,Dictionary<string,string> errors)
{
return $"{method} HTTP kérés a {path} végpontra hibát dobott vissza {statusCode}{(int)statusCode} statuszkoddal:\n\t{String.Join("\n",errors.Select(x => $"\t{x.Key} hiba: {x.Value}"))}";
}
}
}
And I figured out that your app crashes when I open this file(in your program), because it contains accented letters(like á,é).
Please fix this!
I tried inputing the symbols and it may be related but I couldn't cause a crash without this specific code. Either way I can't fix it myself. I'm opening an issue in sora-editor.