Skip to content

Commit 64d9f7b

Browse files
committed
Added same fix for both dnf and pacman
1 parent 7d2deee commit 64d9f7b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/UniGetUI.PackageEngine.Managers.Dnf/Helpers/DnfPkgDetailsHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ protected override void GetDetails_UnSafe(IPackageDetails details)
2727
},
2828
};
2929

30+
p.StartInfo.EnvironmentVariables["LANG"] = "C";
31+
p.StartInfo.EnvironmentVariables["LC_ALL"] = "C";
3032
IProcessTaskLogger logger = Manager.TaskLogger.CreateNew(
3133
LoggableTaskType.LoadPackageDetails, p);
3234
p.Start();

src/UniGetUI.PackageEngine.Managers.Pacman/Helpers/PacmanPkgDetailsHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ protected override void GetDetails_UnSafe(IPackageDetails details)
2727
},
2828
};
2929

30+
p.StartInfo.EnvironmentVariables["LANG"] = "C";
31+
p.StartInfo.EnvironmentVariables["LC_ALL"] = "C";
3032
IProcessTaskLogger logger = Manager.TaskLogger.CreateNew(
3133
LoggableTaskType.LoadPackageDetails, p);
3234
p.Start();

0 commit comments

Comments
 (0)