summaryrefslogtreecommitdiff
path: root/localedata/gen-locale.sh
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-01 05:19:18 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-01 05:19:18 +0000
commit5e087c7152841153da9c696df8596684e359c755 (patch)
treecae5f5ecce14411ed79627adffc0661b94fa1e4a /localedata/gen-locale.sh
parentb856f875e8b72c48ef9b983b702f614615fc80b3 (diff)
downloadglibc-5e087c7152841153da9c696df8596684e359c755.tar.gz
Update.
* assert/Depend: Add localedata. * assert/Makefile (test-assert-ENV): New. Define LANGUAGE=C. (test-assert-perr-ENV): New. Define LANGUAGE=C. * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type == R_ALPHA_REFQUAD]: Use memcpy to load and store value from relocation address to prevent unaligned trap. Suggested by Richard Henderson <rth@cygnus.com>. 2000-06-30 Jakub Jelinek <jakub@redhat.com> * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines if redirecting and either redirection is done using defines or not optimizing. 2000-06-30 Ulrich Drepper <drepper@redhat.com>
Diffstat (limited to 'localedata/gen-locale.sh')
-rw-r--r--localedata/gen-locale.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/localedata/gen-locale.sh b/localedata/gen-locale.sh
index ca110741c0..b68e364a1e 100644
--- a/localedata/gen-locale.sh
+++ b/localedata/gen-locale.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-# Generate test locale files
+# Generate test locale files.
# Copyright (C) 2000 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
#
@@ -18,7 +18,8 @@
# not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-common_objpfx=$1; shift
+common_objpfx="$1"; shift
+locfile="$1"; shift
generate_locale ()
{
@@ -37,9 +38,8 @@ generate_locale ()
fi
}
-echo "Generating locale data: this might take a while..."
-generate_locale UTF8 de_DE de_DE.UTF-8
-generate_locale ISO-8859-1 de_DE de_DE.ISO-8859-1
-generate_locale ISO-8859-1 en_US en_US.ISO-8859-1
-generate_locale EUC-JP ja_JP ja_JP.EUC-JP
-generate_locale ANSI_X3.4-1968 en_US en_US.ANSI_X3.4-1968
+locale=`echo $locfile|sed 's|.*/\([^/.]*\)[.].*/LC_CTYPE|\1|'`
+charmap=`echo $locfile|sed 's|.*/[^/.]*[.]\(.*\)/LC_CTYPE|\1|'`
+
+echo "Generating locale $locale.$charmap: this might take a while..."
+generate_locale $charmap $locale $locale.$charmap