1 |
commit: e384fae0f4cafe49304afbc872cb7d3422903681 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 14 19:43:04 2018 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 12 04:08:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=e384fae0 |
7 |
|
8 |
locale-gen: Always build the C.UTF-8 locale (which we now patch in) |
9 |
|
10 |
Originally f2ed15510fd0f7b9bcc923e24efd2681aacd0d5f, gentoo/glibc-9999-9 |
11 |
|
12 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
13 |
|
14 |
locale-gen | 8 ++++++-- |
15 |
1 file changed, 6 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/locale-gen b/locale-gen |
18 |
index fc861f4..f88c677 100755 |
19 |
--- a/locale-gen |
20 |
+++ b/locale-gen |
21 |
@@ -181,6 +181,10 @@ if [[ -z ${locales_to_generate} ]] && [[ -e ${CONFIG} ]] ; then |
22 |
ewarn "Some might be filtered, but you must fix it." |
23 |
locales_to_generate=$(echo "${locales_to_generate}" | uniq) |
24 |
fi |
25 |
+ |
26 |
+ if echo ${locales_to_generate} | grep -vq 'C.UTF-8' ; then |
27 |
+ locales_to_generate=$(echo "${locales_to_generate}" ; echo "C.UTF-8 UTF-8") |
28 |
+ fi |
29 |
fi |
30 |
|
31 |
if [[ -z ${locales_to_generate} ]] ; then |
32 |
@@ -339,7 +343,7 @@ ret=$(( 0 ${JOB_RETS[@]/#/+} )) |
33 |
[[ ${QUIET} -eq 0 ]] && [[ -z ${JUST_LIST} ]] && \ |
34 |
einfo "Generation complete" |
35 |
|
36 |
-if ${LOCALE_ARCHIVE} ; then |
37 |
+if ${LOCALE_ARCHIVE} && [[ -z ${JUST_LIST} ]] ; then |
38 |
ebegin "Adding locales to archive" |
39 |
# The pattern ends with / on purpose: we don't care about files (like |
40 |
# locale-archive) in the locale subdir, and we definitely don't want to |
41 |
@@ -367,7 +371,7 @@ if ${LOCALE_ARCHIVE} ; then |
42 |
fi |
43 |
|
44 |
# Remove locales that existed but were not requested |
45 |
-if [[ -n ${UPDATE} ]] ; then |
46 |
+if [[ -n ${UPDATE} ]] && [[ -z ${JUST_LIST} ]] ; then |
47 |
# Ignore these pseudo locales |
48 |
existing_locales=${existing_locales/ C / } |
49 |
existing_locales=${existing_locales/ POSIX / } |