summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/project-id
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2005-02-08 11:22:14 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:12:10 +0200
commit2a6212b1cdeb803c9ddd0e6a470224286b0e6255 (patch)
treeda9ea0f815acc2d5708a5edf8e0eedd491691dfe /gettext-tools/src/project-id
parent75adb3989bfd3c5949a541f954038b4863532706 (diff)
downloadexternal_gettext-2a6212b1cdeb803c9ddd0e6a470224286b0e6255.zip
external_gettext-2a6212b1cdeb803c9ddd0e6a470224286b0e6255.tar.gz
external_gettext-2a6212b1cdeb803c9ddd0e6a470224286b0e6255.tar.bz2
Use LC_ALL=C to protect range expression against Estonian locale.
Diffstat (limited to 'gettext-tools/src/project-id')
-rwxr-xr-xgettext-tools/src/project-id6
1 files changed, 5 insertions, 1 deletions
diff --git a/gettext-tools/src/project-id b/gettext-tools/src/project-id
index 7b1c86f..95e5f9f 100755
--- a/gettext-tools/src/project-id
+++ b/gettext-tools/src/project-id
@@ -1,7 +1,7 @@
#!/bin/sh
# Prints a package's identification PACKAGE VERSION or PACKAGE.
#
-# Copyright (C) 2001-2003 Free Software Foundation, Inc.
+# Copyright (C) 2001-2003, 2005 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -18,6 +18,10 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
want_version="$1"
+
+# NLS nuisances: Letter ranges are different in the Estonian locale.
+LC_ALL=C
+
while true; do
if test -f configure; then
package=`(grep '^PACKAGE_NAME=' configure; grep '^ *PACKAGE=' configure) | grep -v '=[ ]*$' | sed -e '1q' | sed -e 's/^[^=]*=//' | sed -e "s/^'//" -e "s/'$//"`