Skip to content

Commit 7d2deee

Browse files
committed
Fix Apt update detection on non-English locales
1 parent 8bf6235 commit 7d2deee

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/UniGetUI.PackageEngine.Managers.Apt

src/UniGetUI.PackageEngine.Managers.Apt/Apt.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ protected override IReadOnlyList<Package> GetAvailableUpdates_UnSafe()
223223
CreateNoWindow = true,
224224
},
225225
};
226+
p.StartInfo.EnvironmentVariables["LANG"] = "C";
227+
p.StartInfo.EnvironmentVariables["LC_ALL"] = "C";
226228
IProcessTaskLogger logger = TaskLogger.CreateNew(LoggableTaskType.ListUpdates, p);
227229
p.Start();
228230

0 commit comments

Comments
 (0)