Browse Source

* tests/lang: More robust LANG parsing to support values such as "ml_IN".

tags/2.71
Joey Hess 13 years ago
parent
commit
6063ada926
2 changed files with 5 additions and 2 deletions
  1. +3
    -0
      debian/changelog
  2. +2
    -2
      tests/lang

+ 3
- 0
debian/changelog View File

@@ -14,6 +14,9 @@ tasksel (2.71) UNRELEASED; urgency=low
from japanese. No one seems have a needs to input Japanese on
Linux console.

[ Joey Hess ]
* tests/lang: More robust LANG parsing to support values such as "ml_IN".

-- Kenshi Muto <kmuto@debian.org> Sun, 09 Dec 2007 15:23:25 +0900

tasksel (2.70) unstable; urgency=low


+ 2
- 2
tests/lang View File

@@ -4,8 +4,8 @@
if [ "$NEW_INSTALL" ]; then
set -e
shift 1
baselang=$(expr "$LANG" : '\(.*\)_')
fulllang=$(expr "$LANG" : '\(.*\)\.')
baselang=${LANG%%_*}
fulllang=${LANG%%.*}
for locale in $@; do
if ( [ -n "$LANG" ] && [ "$LANG" = "$locale" ] ) || \
( [ -n "$fulllang" ] && [ "$fulllang" = "$locale" ] ) || \


Loading…
Cancel
Save