Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit ab598a3

Browse files
author
freswa
committed
improve locale handling as supposed by @codefiles
Add SUPPORTED file to package as done by other distributions in order to provide the set of available locales in a unmodified file. Also remove examples in locale.gen to avoid matches of tools as sed and grep. Credit @ archlinux/archinstall#1423 (comment) git-svn-id: file:///srv/repos/svn-packages/svn@455119 eb2447ed-0c53-47e4-bac8-5bc4a241df78
1 parent ad2bf2a commit ab598a3

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

glibc/trunk/PKGBUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ package_glibc() {
185185
sed -e '1,3d' -e 's|/| |g' -e 's|\\| |g' -e 's|^|#|g' \
186186
"$srcdir/glibc/localedata/SUPPORTED" >> "$pkgdir/etc/locale.gen"
187187

188+
# Add SUPPORTED file
189+
install -dm644 "$srcdir"/glibc/localedata/SUPPORTED "$pkgdir"/usr/share/i18n/SUPPORTED
190+
188191
# install C.UTF-8 so that it is always available
189192
install -dm755 "$pkgdir/usr/lib/locale"
190193
cp -r "$srcdir/C.UTF-8" -t "$pkgdir/usr/lib/locale"

glibc/trunk/locale.gen.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99
# where <locale> is one of the locales given in /usr/share/i18n/locales
1010
# and <charset> is one of the character sets listed in /usr/share/i18n/charmaps
1111
#
12-
# Examples:
13-
# en_US ISO-8859-1
14-
# en_US.UTF-8 UTF-8
15-
# de_DE ISO-8859-1
16-
# de_DE@euro ISO-8859-15
17-
#
1812
# The locale-gen command will generate all the locales,
1913
# placing them in /usr/lib/locale.
2014
#

0 commit comments

Comments
 (0)