mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-24 14:17:41 -05:00
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:
1 parent
3bb87c2684
commit
205563ccb1
1 file changed
+5
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user