From 205563ccb120b32093c0fa38de163f23a28ccfc2 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Fri, 10 Oct 2025 10:23:13 +0300 Subject: [PATCH] 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 Reviewed-By: Rob Crittenden Reviewed-By: David Hanina --- makeapi.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makeapi.in b/makeapi.in index 8fc87d23d..d7656e7cb 100644 --- a/makeapi.in +++ b/makeapi.in @@ -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()