aboutsummaryrefslogtreecommitdiff
path: root/localedata/sort-test.sh
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@systemhalted.org>2017-10-13 22:44:44 -0700
committerCarlos O'Donell <carlos@systemhalted.org>2017-10-25 12:24:31 -0700
commit56fa555a834c1536bf8d58c1ac6097f18f0d92b6 (patch)
treef26c97c188d81525b3bfd0f03f5ff4f60330e4b6 /localedata/sort-test.sh
parent337ff3c501f0e1fadd1036b6fa2754cfbb0c29ea (diff)
downloadglibc-56fa555a834c1536bf8d58c1ac6097f18f0d92b6.tar
glibc-56fa555a834c1536bf8d58c1ac6097f18f0d92b6.tar.gz
glibc-56fa555a834c1536bf8d58c1ac6097f18f0d92b6.tar.bz2
glibc-56fa555a834c1536bf8d58c1ac6097f18f0d92b6.zip
localedata: Locale and test name are the same.
The localedata collation test data is encoded in a particular character set. We rename the test data to match the full locale name with encoding, and adjust the Makefile and sort-test.sh script. This allows us to have a future C.UTF-8 test that is disambiguated from the built-in C locale. Signed-off-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'localedata/sort-test.sh')
-rw-r--r--localedata/sort-test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/localedata/sort-test.sh b/localedata/sort-test.sh
index 46ed5f0df6..17fb2622f0 100644
--- a/localedata/sort-test.sh
+++ b/localedata/sort-test.sh
@@ -32,7 +32,8 @@ here=`pwd`
status=0
for l in $lang; do
here=0
- cns=`echo $l | sed 's/\(.*\)[.][^.]*/\1/'`
+ # Locale name matches test filename (without in).
+ cns=$l
${test_program_prefix_before_env} \
${run_program_env} \
LC_ALL=$l ${test_program_prefix_after_env} \