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

Commit

Permalink
improve locale handling as supposed by @codefiles
Browse files Browse the repository at this point in the history
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
  • Loading branch information
freswa committed Sep 6, 2022
1 parent ad2bf2a commit ab598a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions glibc/trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ package_glibc() {
sed -e '1,3d' -e 's|/| |g' -e 's|\\| |g' -e 's|^|#|g' \
"$srcdir/glibc/localedata/SUPPORTED" >> "$pkgdir/etc/locale.gen"

# Add SUPPORTED file
install -dm644 "$srcdir"/glibc/localedata/SUPPORTED "$pkgdir"/usr/share/i18n/SUPPORTED

# install C.UTF-8 so that it is always available
install -dm755 "$pkgdir/usr/lib/locale"
cp -r "$srcdir/C.UTF-8" -t "$pkgdir/usr/lib/locale"
Expand Down
6 changes: 0 additions & 6 deletions glibc/trunk/locale.gen.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
# where <locale> is one of the locales given in /usr/share/i18n/locales
# and <charset> is one of the character sets listed in /usr/share/i18n/charmaps
#
# Examples:
# en_US ISO-8859-1
# en_US.UTF-8 UTF-8
# de_DE ISO-8859-1
# de_DE@euro ISO-8859-15
#
# The locale-gen command will generate all the locales,
# placing them in /usr/lib/locale.
#
Expand Down

0 comments on commit ab598a3

Please sign in to comment.