Check for mono-locale-extras during startup

This commit is contained in:
kaso17
2017-01-26 14:13:58 +01:00
parent 40f930591a
commit 72e5baee58

View File

@@ -169,6 +169,17 @@ namespace Jackett.Services
{
logger.Error("Error while getting environment details: " + e);
}
try {
Encoding.GetEncoding("windows-1255");
}
catch (NotSupportedException e)
{
logger.Debug(e);
logger.Error(e.Message + " Most likely the mono-locale-extras package is not installed.");
Environment.Exit(2);
}
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
// Load indexers
indexerService.InitIndexers();