aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-06-06 08:55:24 +0000
committerUlrich Müller <ulm@gentoo.org>2009-06-06 08:55:24 +0000
commit87a56fb743018511fe8fdafcd8af0a46b5440629 (patch)
tree736524ce7bab348e693c73314e306a14fa5e4079
parentSort kernel versions properly, bug 207889. (diff)
downloadeselect-87a56fb743018511fe8fdafcd8af0a46b5440629.tar.gz
eselect-87a56fb743018511fe8fdafcd8af0a46b5440629.tar.bz2
eselect-87a56fb743018511fe8fdafcd8af0a46b5440629.zip
Set C locale for sort.
svn path=/trunk/; revision=580
-rw-r--r--modules/kernel.eselect2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/kernel.eselect b/modules/kernel.eselect
index 1e6b710..ee37297 100644
--- a/modules/kernel.eselect
+++ b/modules/kernel.eselect
@@ -24,7 +24,7 @@ sort_kernel_versions() {
# 3. Run sed again to remove the prepended keys from step 1.
sed -e 's/^\(linux-\)\?\([[:digit:].]\+\)[-_]rc/\2 0 &/' \
-e 't;s/^\(linux-\)\?\([[:digit:].]\+\)/\2 1 &/' \
- | ${vsort} | sed 's/.* //'
+ | LC_ALL=C ${vsort} | sed 's/.* //'
}
# find a list of kernel symlink targets