From 836bb72b840cabadea0131064a7bcc4256d2c84f Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sun, 31 Mar 2024 18:00:16 -0700 Subject: [PATCH] gnulib-tool.py: Use case-sensitive sorting for file names. * pygnulib/GLImport.py (GLImport.prepare): Remove the str.lower key from the call to sorted(). --- ChangeLog | 6 ++++++ pygnulib/GLImport.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d6afda967e..441bbb4ceb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-04-01 Collin Funk + + gnulib-tool.py: Use case-sensitive sorting for file names. + * pygnulib/GLImport.py (GLImport.prepare): Remove the str.lower key from + the call to sorted(). + 2024-04-01 Paul Eggert getcwd: port better to buggy file systems diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index 294a8df979..0adfd8a73c 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -942,7 +942,7 @@ AC_DEFUN([%s_FILE_LIST], [\n''' % macro_prefix # Determine the final file lists. main_filelist, tests_filelist = \ self.moduletable.filelist_separately(main_modules, tests_modules) - filelist = sorted(set(main_filelist + tests_filelist), key=str.lower) + filelist = sorted(set(main_filelist + tests_filelist)) if not filelist: raise GLError(12, None) -- 2.39.5