makeapi: enforce en_US.UTF-8 locale when sorting API files

Collation should be the same for API files or we will end up with
differences between development environments.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: David Hanina <dhanina@redhat.com>
This commit is contained in:
Alexander Bokovoy authored and Sudhir Menon committed 2025-10-28 17:57:43 +05:30
1 parent 3bb87c2684
commit 205563ccb1
1 file changed
+5
+5
View File
@@ -25,6 +25,8 @@
from __future__ import print_function
import locale
import platform
import importlib
import itertools
import sys
@@ -680,6 +682,9 @@ def validate_api_reference():
return rval
def main():
if platform.system() == "Linux":
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
rval = 0
options, _args = parse_options()